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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys? Any thoughts here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know this is a bit old but you can get it with:
http://example.com/rest/api/user?key=402880824ff933a4014ff9345d7c0002
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.