Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get user key in Confluence cloud?

Hana Kučerová Community Leader May 13, 2021

Hi everybody,

when I do full XML export of space from Confluence cloud, there are definitions of users, something like:

<object class="ConfluenceUserImpl" package="com.atlassian.confluence.user">
<id name="key"><![CDATA[user_key]]></id>
<property name="name"><![CDATA[user_email]]></property>
<property name="lowerName"><![CDATA[user_email]]></property>
<property name="atlassianAccountId"><![CDATA[user_account_id]]></property>

Are you aware of any other (ideally easier) way how to get the user_key other then XML export?

It is possible to get this information from REST API in server using endpoint /rest/api/user?username=user_username (there's userKey param in the response), but when I use cloud endpoint /wiki/rest/api/user?accountId=user_accountId, this information is missing in the response.

I also tried to find it somewhere in the admin section in user's profile etc., but no luck.

Thank you very much!

1 answer

Hi @Hana Kučerová , I don't think you can get it using REST API. There is a deprecation notice which describes where and why the username and userkey attributes are removed:

Hana Kučerová Community Leader May 13, 2021

Thanks @Martin Bayer _MoroSystems_ s_r_o__ .

So it looks like I will need to use the XML export. Not nice, but I can live with it :-). I just wanted to be sure I'm not missing something.

NP :), and can you share the use case in which you need user key?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

315 views 2 6
Read article

Community Events

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

Events near you