Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

How to get the UUID of a user in Bitbucket Cloud

Greetings

I wanted to know, How to get the UUID of a given user in Bitbucket cloud using REST API call? 

The use case is, I want to remove a user from a group where uuid is required. The API call is as follows - Taken from the Atlassian documentation.

https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/

curl --request DELETE --user <username>:<API Token> https://api.bitbucket.org/1.0/groups/<workspace>/{group}/members/{uuid}

 

Thanks !

2 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.
Oct 04, 2023

Hi all,
The unique identifier that you want to use is the Atlassian Account ID (also known as AAID). 

 

The Atlassian Account ID is accepted in the REST API requests and available in the response as the account_id field.

 

Here is an article where I explain how to retrieve the AAID: Retrieve the Atlassian Account ID (AAID) in bitbucket.org

The most common REST API endpoint to retrieve the account IDs of users is the members endpoint. It returns the account_id of all users belonging to a workspace when calling the https://api.bitbucket.org/2.0/workspaces/{workspace}/members endpoint. 

 

While the UUID was the standard a few years ago, these days the Atlassian Account ID is the preferred, recommended and future proof option as a unique identifier for users.

 

Caterina

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 07, 2020

Hi @Kota Sreenivasa Shravana Kumar ,

You can retrieve a list of all users that have access to a certain workspace (that you are an admin of) and the UUID for each one using this endpoint:

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Hi @theod

I have tried to hit the above mentioned URL:

example: 

Like this, I have hit in the browser bit it was opening this

link https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication

Can you help me on this, how to get the logs using API.

 

Cheers

Satish Kayam

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events