The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Get list of all groups for Confluence

Darshika
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!
January 20, 2020

Hi,

 

I am trying to create a developer app for Confluence cloud. I am getting the error 'Unauthorized' when I try to call the get groups api. Heres the list of steps I followed - 

 

1) Create an app on developer.atlassian.com. Configure OAuth3.0 and configure confluence for it. Add ALL confluence scopes.

2) Get the authorization code while being logged in to an org admin account (for a new test site I created on a free plan) and the access token

3) Use the access token to get the site id (https://api.atlassian.com/oauth/token/accessible-resources)

4) Call the API to get groups  - https://api.atlassian.com/ex/confluence/<cloud-id>/wiki/rest/api/group

 

I am able to list the spaces this way, but not the groups. Can someone please help?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Darshika
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!
January 21, 2020

Is there any step I am missing here?

1) Assign some extra permissions to the app above?

2) Publish the app on Developer Service Desk?

3) Create a Connect app instead?

TAGS
AUG Leaders

Atlassian Community Events