I tried to do smth like confluence/rest/api/user?username=a and username=* and some other cases but it shows an error
No user found with key : null
so is the key the must parameter?
and is there a wildcard for any parameter so I could get the list of all users
or any other way I could do it?
any help would be really appreciated
The documentation mentions that a parameter is required and there is no known wildcard option. That being said, the usual trick I use is to query the confluence-users group members which list all users having access:
You can also create a group with all users even unlicensed and use the same endpoint.
Feels like a workaround but it's working well!
Hope it helps!
This worked for me, thank you so much!
I did want to point out though that confluence-users is the default user group that gets some one access, but it could be something else if configured so. for instance, my company uses the group atlassian-users to grant access to Confluence, JIRA, and BitBucket.
I know I'm a bit late to the party but you future reference. There is one more way to get a list of all users without specifying the limi by making a get request to the following end point:
This will return you all the users. I hope this helps :)
- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...
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