Forums

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

request /wiki/rest/api/group return 401 response for the OAuth 2.0 (3LO) for apps

nemiro_viktor
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!
June 1, 2020

Could you help me please? How i can to get the list of groups, if i use the OAuth 2.0 (3LO) for apps authentication?

  1. I created the new application.s1.png
  2. Got the code . I used the GET request: 
    https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id={clientId}&scope=read%3Ame offline_access read%3Aconfluence-content.summary write%3Aconfluence-content read%3Aconfluence-space.summary write%3Aconfluence-space write%3Aconfluence-file read%3Aconfluence-props write%3Aconfluence-props manage%3Aconfluence-configuration read%3Aconfluence-content.all search%3Aconfluence&redirect_uri=https%3A%2F%2Fnemirositetest%2Fcallback&state=${YOUR_USER_BOUND_VALUE}&response_type=code&prompt=consent
  3. Then got the access_token used the POST request:s3.png
  4. Then i got the confluence site id s4.png
  5. Then i tried to execute the https://developer.atlassian.com/cloud/confluence/rest/#api-api-group-get
  6. request, but got the response with 401 code s5.png

PS:
1. The request (https://developer.atlassian.com/cloud/confluence/rest/#api-api-group-get) works fine if i use the basic authentication.


2. And Yes. My user has access to the groups

s6.png

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.
June 2, 2020

Hello @nemiro_viktor ,

Welcome to the Atlassian Community.

As you can see, no OAUTH Scope is documented for the group endpoint. This actually means that the endpoint does not support Oauth 2 (3LO) yet. 

I have just spoken to DEV and I have been told that they are already working to re-write the group endpoints to add the possibility to:

  • Create/Delete/Update Group
  • Added/Remove members to/From a Group
  • Use 3LO auth

 

You can vote and set yourself as a watcher to below Feature Request so that you will be notified in case of any progress:

 

I hope this clarifies.

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events