Is there a way to retrieve user_key of a user from confluence REST API?

I am trying to get the user details of a particular user. I have email and username. Is there any REST Api endpoint that I can use to get the user_key?

2 answers

3 votes

Hi Nandu,

You can use this URL and retrieve all the users information:

<confluence_url>/rest/prototype/1/search/user.json?max-results=10&query=<username>



Thank you very much. I have tried searching many documentations. Where is this documented? Could we rely on these prototype APIs? Also is there any endpoint which gives the complete user list?

Davin Studer Community Champion Jul 09, 2015

It's probably not documented. Atlassian's documentation is a bit lacking.

0 vote

Hi Nandu,

Did search for this documentation? Maybe you can find it useful smile

https://developer.atlassian.com/confdev/confluence-rest-api/confluence-rest-api-examples

Thank you Viana. But, I was referring to documentation for the prototype API. I am not able to find it anywhere. Could you please point me to the exact location. Do you happen to know the endpoint for retrieving all the users in the system?

Davin Studer Community Champion Jul 09, 2015

Guilherme, the page you mention says nothing about how to get user information with the REST API. Honestly, Atlassian's public documentation for their API's is atrocious. You folks should really work on getting it in order. Take a note from the jQuery team for how to do good API documentation.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

389 views 17 9
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you