Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Sivanesan
Partner - Contributor II
Partner - Contributor II

Is there any API endpoint available to disable a user?

Hi Everyone

I would like to check if there is any endpoint available to disable a user. I checked the documentation but couldn't find anything related.

Regards

Sivanesan

Labels (3)
2 Solutions

Accepted Solutions
Sivanesan
Partner - Contributor II
Partner - Contributor II
Author

Thanks for the response Ajay. But I think this is for Qlik Cloud. We are using Qliksense Server. Maybe I posted the question in a different forum.

View solution in original post

stefanstoichev123

You can inactivate the user by "blocking" it.

 

In order to do that you can use the Repostory API and make PUT request to the /user/{id} endpoint and setting blacklisted to true

 

https://help.qlik.com/en-US/sense-developer/February2022/APIs/RepositoryServiceAPI/index.html?page=2...

 

Stefan

View solution in original post

4 Replies
ajaykakkar93
Specialist III
Specialist III

Hi,

You can visit Link to do this activity.
Method: PATCH 

API Endpoint: /api/v1/users/<USERID:id>

Payload: {
"op": "replace",
"path": "/status",
"value": "disabled"
}

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

Sivanesan
Partner - Contributor II
Partner - Contributor II
Author

Thanks for the response Ajay. But I think this is for Qlik Cloud. We are using Qliksense Server. Maybe I posted the question in a different forum.

stefanstoichev123

You can inactivate the user by "blocking" it.

 

In order to do that you can use the Repostory API and make PUT request to the /user/{id} endpoint and setting blacklisted to true

 

https://help.qlik.com/en-US/sense-developer/February2022/APIs/RepositoryServiceAPI/index.html?page=2...

 

Stefan

Sivanesan
Partner - Contributor II
Partner - Contributor II
Author

Yes Stefan. I came across this solution and tested this. Thanks for pointing.

Regards

Sivanesan