Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Find user by Resource identifier

Kenneth Veipert
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!
March 26, 2014

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?

2 answers

1 vote
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2014

You can find the user with the folllowing SQL query:

select lower_username from user_mapping where user_key='ff8080813fbbab90013fbbac8f580027';

Valentin_Levitov
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!
September 9, 2014

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

Valentin_Levitov
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!
May 5, 2015

Guys? Any thoughts here?

Maciej Lad September 8, 2016

Hi smile any information about this ?

 

Orlando Jurcone March 20, 2019

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.

0 votes
sixenvi January 21, 2020

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events