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

How to get the UUID of a user in Bitbucket Cloud

Kota Sreenivasa Shravana Kumar December 3, 2020

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.
October 4, 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.
December 7, 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

Satish Kayam January 18, 2022

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