Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
jonashen
Contributor
Contributor

Allocate user token via API

Hi

Running Qlik Sense Enterprise and need some help 🙂

I can connect to QRS API from my Python code. Calling /qrs/license/accesstypeoverview gives me an response over available tokens.

And I can create new users via POST to /qrs/user

But I don't know how I can assign a token to my new user?

Anyone that have done it via API calls?

Labels (2)
1 Reply
DaveChannon
Employee
Employee

Hey @jonashen 

As you're using client-managed, I'd actually suggest leveraging the license assignment rules to do the heavy lifting for you. They can access any part of a user property and immediately allocate a license as required.

If you still wish to assign it programmatically, you can use an endpoint such as https://help.qlik.com/en-US/sense-developer/August2023/APIs/RepositoryServiceAPI/index.html?page=128... to create the assignment.