Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a Confluence Cloud Rest API to get list of all users?

Hello,

I need to show list of Confluence users in a picker. Is there a way to retrieve list of Confluence Users via Cloud Rest API?

 

Thanks,

Sheff

1 answer

2 votes
Warren Community Leader Feb 15, 2019

Hi @Shefali Grover

This is the documentation for the API. 

For getting all Jira users, I pass in 

?startAt=0&maxResults=1000&username=%

but be aware that username is about to be deprecated

Thanks @Warren 

the issue is the api you mentioned is for Jira.  I am looking for same / similar api in confluence.  

Like Marty likes this
Warren Community Leader Feb 15, 2019

Hi @Shefali Grover 

Sorry, I didn't actually try this, I just assumed that the Confluence API call would behave the same way as the Jira one, which it doesn't   :-(

According to this, what you need to do is run a group query

GET /wiki/rest/api/group

then for each group, get it's members with

GET /wiki/rest/api/group/{groupName}/member

I've tried this and it works, it just seems crazy having to do it this way

Like Marty likes this

Hello @Warren

Thanks for the quick reply!! I have tried this API in the past. As you mentioned, it gets crazy if the number of groups are too many . I wish they can expose the User Search Rest API in Confluence Cloud as well, similar to what is available in the JIRA Cloud. 

It is really annoying to look up users via groups specially when you have to keep refreshing your pool to make sure you have the updated list.

 

Thanks!!

Like Marty likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Confluence Bingo Round 3!

That’s right! Grandma’s back at it again, and this time she’s brought all her friends. In honor of Team '21, this Bingo round is dedicated to all things team-related, and the prizes are no exception....

310 views 12 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you