Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Update User Profile via Rest API - Final Words?

Hi,

I can't seem to find a satisfactory answer: is it possible to update a user's profile with a Rest API call?

I feel like these should have worked: https://developer.atlassian.com/cloud/admin/user-management/rest/api-group-users/

However, I keep getting a "forbidden.insufficientScope" / "Insufficient scope for this action" in Postman, even with the "GET Profile" request.

I'm the site admin and the user was created by API, in a Directory that I manage with a domain that I manage on the site. What could be wrong?

Can anyone even just "get" a user's profile with a Rest API call on his instance?

Thank you all in advance,

Best regards,

Dylan

2 answers

1 accepted

2 votes
Answer accepted

The bug for this issue has been commented on with a fix that has been deployed. All newly-created API keys should function as expected. I tested this out in my environment and it worked for me.

I'm running into the same issue. The API key I created works for getting a list of users at the organization level, but trying to manage individual users with the same key returns a 403 with a "forbidden.insufficientScope" error, with one of the "acceptableScoes" being "manage:org". You'd think that if I can see data about my org already that this scope would be granted.

we have the same exact problem! However up until a few days ago per-user operations were working with the same API keys. Were you able to resolve this?

I opened a ticket with support, and they confirmed today that either 1) docs are incorrect, or 2) something isn't working right internally. They are investigating in detail, and I am awaiting a response.

Like Joe Jadamec likes this

Thanks for the quick response Andrew and for opening a support ticket. Would love it if you could keep the forum updated about the status of this issue! Thanks again.

I have the same problem trying any operation besides get users.  Response is always

{
"context": {
"acceptableScopes": [
"manage:org",
"manage:me:DUMMYSCOPE"
],
"message": "Insufficient scope for this action"
},
"errorDetail": {
"acceptableScopes": [
"manage:org",
"manage:me:DUMMYSCOPE"
],
"message": "Insufficient scope for this action"
},
"errorKey": "forbidden.insufficient-scope",
"key": "forbidden.insufficientScope"
}

Like Andrew Marshall likes this

To bump this thread, I am still experiencing this behavior:

{'key': 'forbidden.insufficientScope', 'context': {'message': 'Insufficient scope for this action', 'acceptableScopes': ['manage:org', 'manage:me:DUMMYSCOPE']}, 'errorKey': 'forbidden.insufficient-scope', 'errorDetail': {'message': 'Insufficient scope for this action', 'acceptableScopes': ['manage:org', 'manage:me:DUMMYSCOPE']}}

This happens with any endpoint other than list users.

Atlassian Support sent me this ticket for tracking and stated that they are working an internal ticket as well to fix the problem: https://jira.atlassian.com/browse/ID-7654

 

Please watch and report the ticket to help push Atlassian to fix the issue more quickly.

Like Alexander Kolodziej likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

299 views 4 6
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