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 !
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.