Qlik Community

Qlik Sense Deployment & Management

Discussion board where members learn more about Qlik Sense Installation, Deployment and Management.

Announcements
Qlik Analytics Tour 2020 Online. Begins August 10th. Register Today
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
Employee
Employee

Re: Deallocate Qlik Sense Token automatically

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
Highlighted
Employee
Employee

Re: Deallocate Qlik Sense Token automatically

Hi Amien,

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

Regards,

Vijay

Highlighted
Employee
Employee

Re: Deallocate Qlik Sense Token automatically

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

Highlighted
Specialist
Specialist

Re: Deallocate Qlik Sense Token automatically

Ofcourse! Thanks again Levi

Highlighted
Partner
Partner

Re: Deallocate Qlik Sense Token automatically

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

Highlighted
Specialist
Specialist

Re: Deallocate Qlik Sense Token automatically

@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.

Highlighted
Employee
Employee

Re: Deallocate Qlik Sense Token automatically

@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.

Highlighted
Specialist
Specialist

Re: Deallocate Qlik Sense Token automatically

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

 

Highlighted
Employee
Employee

Re: Deallocate Qlik Sense Token automatically

I'll post on the thread you created.