It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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>' \

```

1 answer

0 votes
Dario Atlassian Team Sep 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
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

932 views 8 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you