API to disable user not working despite admin privileges

We are trying to build an API call to disable a user’s Atlassian account. Despite the fact that the API token belongs to a user with admin privileges, however, the response returns {“code”:401,“message”:“Unauthorized”}. The API documentation here:


states that we need a lifecycle.enablement privilege, however, we are unable to locate where or how exactly we can enable this.

Trying to do the same thing. Receiving the same error. I even tried to do something way simpler to simply fetch orgs which doesn’t require any privilidges

Example of what I’m executing:

curl --location --request GET ‘https://api.atlassian.com/admin/v1/orgs
–header ‘Authorization: Bearer (my bearer here) from MyTokens’
–header ‘Accept: application/json’ \