Find user by Resource identifier

Hello, i get the content of a confluence page by the REST-Api. Now there is a link to a user like this:

<ac:link><ri:user ri:userkey="ff8080813fbbab90013fbbac8f580027" /></ac:link>

Now is the question: How can i get the user of this userkey there? In the confluence-documentation is described how to get the user by a key(username) or a full name:
https://developer.atlassian.com/static/rest/confluence/5.0.3.html#d2e304

How can i get the user by this ri:userkey?

1 answer

1 vote
Ann Worley Atlassian Team Aug 05, 2014

You can find the user with the folllowing SQL query:

select lower_username from user_mapping where user_key='ff8080813fbbab90013fbbac8f580027';

And what if I don't have an access to the database, I have only REST access.

Guys? Any thoughts here?

Hi smile any information about this ?

 

You can find your own user key by viewing Confluence Page Source(right click -> view page Source) and searching for "user-key". If you only need the user-key for some colleagues you can ask them directly or otherwise you'll need access to database.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

560 views 2 13
Read article

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