Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,712
Community Members
 
Community Events
184
Community Groups

How to get accountId from username

When I have the username how can I get the accountId from the user? How can I find it via REST API? I dont have any other data except for the user name

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 31, 2023

You can use the Find users endpoint to do it, it takes either the display name or the email address to find the user. Get user endpoint used to take the username, but that has been deprecated because of GDPR, you can see the notice here.

Thanks, is there a way to get the display name or the mail address via the user name?

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 31, 2023

If you are on Data Center/Server then the Get user endpoint still takes the username, it is only on Cloud that it does not, and on Cloud your username is your email.

thank you, i didnt know that

Like Mikael Sandberg likes this

Hello,

 

About the Cloud, I would want to ask if it is possible to get the user’s email address via API, because the information which I get is for display_name, nickname and uuid. display_name and nickname are totally different from the username or email address. On other topics about it I see that it is private information, but shouldn’t be available for access via token or AppPassword? Is it possible to get such an information? Even with the specific uuid of the user with https://api.bitbucket.org/2.0/users/<uuid>  does not return anything specific as this.

 

Thank you in advance! 


Best regards!

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 13, 2023

@Elena Dzhordzhilova This should be a separate question. Based on the documentation for Bitbucket you can only get the email address for the current user, there is no way of getting the email address for other users, at least not at the moment. For Jira and Confluence you can get the email by accessing the Get user endpoint.

Suggest an answer

Log in or Sign up to answer