Hello Community,
please, is there some easy way for Jira administrator how to obtain userKey (~ JIRAUSER12345) for some specific user?
I'm aware, that I can get this information:
But I wasn't able to find any straightforward way like get it from User management, click somewhere, use some URL. Am I missing something?
Thank you very much.
Hi @Hana Kučerová ,
Have you checked this article https://blog.developer.atlassian.com/important-gdpr-changes-in-jira-server/
also, check https://jira.atlassian.com/browse/JRASERVER-68189
Hi @Soumyadeep Mandal ,
so, according to the issue JRASERVER-68189, there is no Jira's UI way.
Probably the easist way is to use REST API and URL:
Thank you for the confirmation, I thought I'm missing something.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to Script Console in ScriptRunner and type in Script:
import com.atlassian.jira.component.ComponentAccessor;
ComponentAccessor.getUserManager().getUserByName("username");
Remember to change username
Click Run
The result is below
username(JIRAUSER01010)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Agnes Kal , this works great. How would I do the opposite? I have JIRAUSER12345, and I want to show the display name? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Almost the same:
import com.atlassian.jira.component.ComponentAccessor;
ComponentAccessor.getUserManager().getUserByKey("JIRAUSER12345");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<JIRAURL>/jira/rest/api/2/user?key=JIRAUSERxxxx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.