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

Evangelos Mantadakis May 9, 2018

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
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2018

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.
Evangelos Mantadakis June 10, 2018
Move Work Forward
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2018

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

Doc Gen February 14, 2019

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

Evangelos Mantadakis February 25, 2019

Hi @Doc Gen ,

 

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

Pashupati Khanal
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 4, 2019

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

0 votes
Move Work Forward
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2020

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 :( 

Evangelos Mantadakis January 23, 2021

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
AUG Leaders

Atlassian Community Events