Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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."
Hey Joel,
For UM rest API, you would need to get the token from https://admin.atlassian.com/o/<orgid>/admin-api.
Basically go to https://admin.atlassian.com/ > Settings > API key. Generate the token and use that token to run the call. That should work.
Let me know how it goes
I actually did use that link to generate the API token. When it gets to the https://admin.atlassian.com/o/<orgid>/admin-api link, I get the UI error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was having the same issue before. I tested again this morning, and the page seems to be loading now. Have a look and try to generate a new API, and use it for your call.
See if you're still hitting the 403 error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response. The UI errors are gone now (good!) but even after generating a new key, I still get the 403-Forbidden response. I've opened a ticket with Jira support for them to look into it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having the same issue right now. Was support able to resolve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes (I believe). The issue is that we have not "verified our domain". This is a request that will have to be handled by our system administrators, so I don't have the final status on the API working or not, but I feel very confident this is going to fix the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a Token from the link above and why using the API call I get errors:
"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"
I see that no one from Atlassian has answered this problem for some time.. Looks like it was submitted in March.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having the same issue on our end. However I have verified my domain so not sure why.
Any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue here.
i'm using the right org token, i'm an org admin with a verified domain.
The API is working fine for other api call such as org id, or user for org.
But i'm having a "Caller must be an org admin of targeted account or be the targeted account" when trying to disable a user.
Is there something else i'm missing ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having the same issues. our scripts suddenly stopped working. this is causing a huge problem in our user management at the moment. and now generating new API keys dont allow me make API calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a open ticket with Atlassian, looks like unverified accounts won't be able to update using API :(
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.