Unfortunately there is no direct API endpoint for activation/deactivation.
There is a workaround that I use for this though, you can get the Deactivate/Active API from the Network tab in the developer console, and pass the Cookie and Token from the Browser window as well.
The "Suspend" user API is the nearest you can get https://developer.atlassian.com/cloud/admin/user-management/rest/api-group-lifecycle/#api-users-account-id-manage-lifecycle-disable-post , although from what I remember for this API, you can only use this on user's from your own domain.
If you're trying to revoke access from a certain tool, I usually remove the user from the Group that grants product access, eg. If you want to revoke the user's access from Jira use this API https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-user-delete to remove the user from that group, and the product access will get revoked as a result.
Hope this helps.
Welcome to the Atlassian community!
As I have checked, I try from my end but I did not get any output. It might be not possible and I did figure out how to format the authentication header, which might be helpful:
You can check the below response, Which is related to your problem.
If possible, Please a support ticket to Atlassian team for the confirmation.
Accept the answer If it helps you😑
Regards,
Sanjen Bariki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.