I'm using the user management REST api in Jira cloud. The POST request is as follows:
https://api.atlassian.com/users/{{userid}}/manage/lifecycle/disable(where {{userid}} is the Jira id of the user I want to disable)
I'm using Bearer Token authorization with a valid Admin token.
I'm trying to test this in Postman.
Every time I run it, I get a 403 Forbidden response. The full body of the response is:
{
"key": "forbidden",
"context": "Error: Caller must be an org admin of targeted account or be the targeted account",
"errorKey": "forbidden",
"errorDetail": "Error: Caller must be an org admin of targeted account or be the targeted account"
}However, I am an org & site admin:
Also noteworthy: in the UI, when I generate the admin key and click "Done", the UI gives me a message "Something went wrong; try again later."