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

where can i find my Account ID

we have single sign on in our org. I am automating jira tool 

I want to find my account ID after I log into jira

2 answers

1 accepted

7 votes
Answer accepted
miikhy Community Leader Jan 09, 2019

Hi,

Welcome on Community!

The easiest way I've found to find my accountId is to click on my icon on the sidebar and then on the "Profile" link. In the URL you can find your accountId after the last "/" :

https://********.atlassian.net/people/5bb7ad0ccc53fd0760103780

The bold part of the URL is my accountID :)

A programmatically available option is to use the REST api to search for a user and get his/her accountId in the JSON payload sent back.

Hope this helps!

Cheers

Hi! 

 

Can you share the method? 

 

Cheers,

Gonchik Tsymzhitov

miikhy Community Leader Jan 09, 2019

Hey Gonchik,

Here is the REST documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v3/

If you know the user name, email or key you can use the User endpoint, if not I would recommend to find members of jira-users group with GET /rest/api/3/group/member which includes the accountId as an attribute in its response payload.

Hope it helps!

Cheers

Like Shipsy Support likes this

Hello Micky.

Can you please tell me why I'm getting my account ID on a different format?

I'm getting it like this: atlassian.net/people/557058:db4467a5-32f3-48f9-be3b-687a1bc0468c

I need my ID on the format you showed us here for an API use and only get it like that above.

Can you help me? 

Thanks a lot.

Thank you for this. Very helpful!

Hey Guys, Can you tell me how to get Account Id in Jira Server. It seems to work with Jira Cloud only. So is there a way to get it in Jira Server as well?

Hello Micky.

 

Can you please tell me why I'm getting my account ID on a different format?

atlassian.net/people/557058:db4467a5-32f3-48f9-be3b-687a1bc0468c

I need my ID on the format you showed us here for an API use and only get it like that.

 

Thanks

Hi!

I believe account ID comes after :

as I have the same atlassian.net/people/557058:and then account ID

Thanks,

Anna

We have to change all our username references in JMWE and need to use the full string for Account ID.  Some of our people have the short form (without the hyphens and 557058:) and some people have this longer form (with the hyphens and 557058:).  I'm not sure why there are different formats but I think you do need the full string in the reference. 

Hi Lorraine,

accountIds can take different formats, depending on when they were initially created by Atlassian, whether the user is (or was) a Jira Service Desk "portal-only" user, etc. Don't pay attention to the format.

In JMWE, you can easily get the accountId of any user by using the "Lookup user..." button in the toolbar of every Nunjucks editor on any post-function configuration page, as well as on the Nunjucks Tester page. Also, please note that accountIds in JMWE need to be prefixed with "accountId:" (which the Lookup user functionality will do automatically).

Like Lorraine Gorman likes this

Thanks David.  I think via our testing we are discovering this.  That lookup function in JMWE is especially helpful btw.  

Suggest an answer

Log in or Sign up to answer
TAGS

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