Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21: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.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"Error: Caller must be an org admin of targeted account or be the targeted account"

Nitin Patel
Contributor
September 18, 2019

I'm trying to use the jira cloud ser management api. But it keeps giving me this error. even if I'm trying to access my own account. 

 

```

curl -X GET \
https://api.atlassian.com/users/5d072f480d28a30c4e34ae1c/manage/profile \
-H 'Accept: */*' \
-H 'Authorization: Bearer <redacted>' \

```

2 answers

0 votes
Kevin Suter
Contributor
August 23, 2021

Had the same issue. The creator of the API key (instructions see here)  has to belong to the same domain as the account you want to manage via API (verified domain).

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2019

Hi @Nitin Patel ,

Welcome to the Atlassian Community!

The user management REST APIs are intended to be used by Organization administrators to perform operations on the managed accounts for that organization:

Use this REST API to administer and edit the managed accounts in your organization by account ID

I have checked and I can see that you are not an administrator of the organization that claimed the domain for your account (R*****g).  

You are the administrator of an organization that has no domains claimed (r*****test**in) and that's how you managed to get an API Key to authenticate the REST API call.

However, as the error message says:

Caller must be an org admin of targeted account

 

That's why this is not working. 

 

Please ask to be added as org admin to the organization that claimed the domain of your email address in order to be able to use user management REST APIs.

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events