Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
amien
Specialist
Specialist

Deallocate Qlik Sense Token automatically

Due to all the privacy regulations and policy of the company, i need to deallocate the licence and delete the user, when someone leaves the company. I don't want to do this manually cause of the amount of users.

The user itself i can delete with an API instead of manually in QMC --> Manage Content --> Users. I didn't test this yet, but i'm sure there is an API call for this.

But what about tokens? I couldn't find an API call to do this. Is there even one available? Or is there any other way?

Thanks for helping out.

Btw. .. i'm not looking for a way to by-pass the 7 days limit. Deallocating the token after 7 days is just fine.

1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

Get a list of license allocation IDs:

GET /qrs/license/useraccesstype/full

Delete a specific license:

DELETE /qrs/license/useraccesstype/{IDfromAbove}

View solution in original post

8 Replies
vve
Employee
Employee

Hi Amien,

When you delete a user using QMC or using API, this user's Allocation will automatically be Deallocated.

Regards,

Vijay

Levi_Turner
Employee
Employee

Get a list of license allocation IDs:

GET /qrs/license/useraccesstype/full

Delete a specific license:

DELETE /qrs/license/useraccesstype/{IDfromAbove}

amien
Specialist
Specialist
Author

Ofcourse! Thanks again Levi

marcos_herrera
Partner - Creator III
Partner - Creator III

Hi Levi

 

Wonderfull post, i need a help about this, i need make the DELETE option from a QlikSense app using a REST API connection and DELETE coomand API on Load Script, i made the script to read the users and licences and i can obtain the ID License Allocated from a table

Captura.PNG

I don't have any idea How can i achieve the goal

Thanks

prabhu0505
Specialist
Specialist

@Levi_Turner 

It would be nice if there is a detailed post on end to end implementation on dynamic deallocation. Right now it is scatter with few hints here and there. Please share if there is any documentation on that.

Levi_Turner
Employee
Employee

@prabhu0505 : Dynamic based on what sort of value? 

For example, this post uses whether the user is inactive/removed externally as the param of interest. This post uses an inactivity threshold. But there are quite a few other relevant parameters which an admin could be interested in.

prabhu0505
Specialist
Specialist

@Levi_Turner Dynamically deallocate user token/license for the users inactive for more than 30 days?

 

Levi_Turner
Employee
Employee

I'll post on the thread you created.