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>
</object>
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!
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
NP :), and can you share the use case in which you need user key?
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.