Get my user's Atlassian account ID

Ronny Orot February 15, 2023

Hi,
I'm trying to find a way to get my user's 'Atlassian account ID' from the Bitbucket or Atlassian UI.
Is there a way to do that?

3 answers

1 accepted

1 vote
Answer accepted
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 7, 2023

Hi all,

I just wrote this article about how to retrieve the users' Atlassian Account ID for Bitbucket Cloud in two different use cases:

Retrieve the Atlassian Account ID (AAID) in bitbucket.org 

 

Caterina

3 votes
Vedant Kulkarni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2023

@Ronny Orot , fire the REST API https:<base-url>/rest/api/2/myself and you will receive the JSON response which will contain the Account ID

Ronny Orot February 15, 2023

Using the API is a little too complicated in my case since I'll also have to create an access token.
I wish it was just mentioned somewhere in the UI. In GitHub and Gitlab and even BBS it's super easy to get the user identifier.

Ronny Orot February 16, 2023

Found a way without creating an "App password".
All you have to do is be logged in to Bitbucket and then navigate to the link 'https://bitbucket.org/!api/2.0/user'.
The JSON will include your Atlassian account ID in the field called 'account_id`.

Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 16, 2023

@Ronny Orot 

Indeed, that's the equivalent of the REST call @Vedant Kulkarni was talking about (GET request in the browser) with credentials (because you're already authenticated).

Good that you found it!

Regards,

Jeroen

0 votes
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2023

Hi,

Referring to a community post here:
https://community.atlassian.com/t5/Jira-questions/where-can-i-find-my-Account-ID/qaq-p/976527

 

Hope this helps!

Jeroen

Ronny Orot February 15, 2023

This answer is related to Jira.
I tried doing the same in Bitbucket and searching for the URL in different 'profile' pages, but found nothing related to the Atlassian account ID.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events