Forums

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

REST /rest/api/user/current Unauthorized with OAuth 2.0 3LO

James Hees
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2019

We're converting our Confluence app from application links to OAuth2.0.  Calls like 

https://api.atlassian.com/ex/confluence/{our_cloud_id}/rest/api/space

work however anything related to users, groups fails with 401 unauthorized.  These worked with application links.  Examples of what fails: 

https://api.atlassian.com/ex/confluence/{our_cloud_id}/rest/api/user/current

https://api.atlassian.com/ex/confluence/{our_cloud_id}/rest/api/group

 

A curl request for these looks like: curl --request GET --url https://api.atlassian.com/ex/confluence/{our_cloud_id}/rest/api/user/current --header "Authorization: Bearer {our_token}" --header 'Accept: application/json'

1 answer

1 accepted

0 votes
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 13, 2020

Hi @James Hees ,

Apologies for late reply. However I can see that you already got the issue solved by opening a support ticket in https://support.atlassian.com/contact

I am pasting the solution in here in case anyone would be interested. 

The issue was due to the below bug that is now solved:

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events