Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,333
Community Members
 
Community Events
168
Community Groups

Is there a way to get all users list using Confluence Cloud REST API?

Is there a way to get all users list using confluence Cloud REST API?

https://developer.atlassian.com/cloud/confluence/rest/ 

2 answers

1 accepted

1 vote
Answer accepted

Hi @Evangelos Mantadakis,

Yes it is possible. 

  1. Start with a list of all groups in Confluence
  2. Loop through each group, making a request to Get group members
    /wiki/rest/api/group/{groupName}/member
  3. Save each result to a file and add a condition in the script that doesn't add the same user to the list again.

Hi.

 

I've got too many groups with this endpoint (including Jira groups).

 

So it is not clear how to get the Confluence related groups.

 

Would be nice to have an endpoint which can return all users

Hello @Evangelos Mantadakis / @Move Work Forward ,

Do you know of any other efficient way to get Confluence Users List via rest API other than iterating through all the groups and its members ?

Thanks,

Sheff

Hi @Doc Gen ,

 

Sorry for the delayed response. I am not aware of any other way .

As far as I know, There is no other way of doing it using rest API.

0 votes

I found another way @Doc Gen ,

 

https://developer.atlassian.com/cloud/confluence/rest/#api-api-search-user-get

 

It is also returns App users and other garbage :( 

I have tried this call and it did not return all users. Be careful while using this rest api.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events