I use REST API to download existing Confluence pages, then parse out @mentions. They appear like this in my page:
<ac:link><ri:user ri:userkey="abcdefghi039387472" /></ac:link>
How can I map the alpha-numeric value in the quotes to either user name or email address?
I looked all over the place for an answer but it didn't seem possible at the moment. Is it really so?
Is there a way to import our user data than we resolve the `userkey` value locally?
Update - got the following answer from Atlassian support:
With the approval of a site admin I can provide you with a data dump that contains all of the userskeys, Atlassian Account IDs and their emails. There is not a way where you can get all of this information on your own. As only support can translate the Atlassian Accounts into eMail addresses in a data dump.
I don't believe this is possible. As there's been updates to the API to keep confidentiality.
Here's the link about the rest API:
I have filed a request with Atlassian support to get a definitive answer.
I am not following the confidentiality reasoning. The user name is visible on the page where my API user has READ permission. I don't understand why the same API user, using a Token via an API call, somehow cannot access the same information.
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
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