'How to find Bitbucket Account UUID?
Since bitbucket no longer supported the use of username. We must instead use User uuid for accessing the bitbucket api's.
Depreciated or Earlier
Latest
https://api.bitbucket.com/2.0/users/558050:c0b72ad0-1cb5-4018-9cdc-0cde8492c443
Solution 1:[1]
- Inspect your https://bitbucket.org/account/settings/
- Search "uuid" in your browser inspector element
- Enjoy your personal information (including uuid)
Solution 2:[2]
I can't believe it could be this hard to get my own UUID. The way i fixed it was to create a public repo and then run this curl command
curl https://api.bitbucket.org/2.0/repositories/<bitbucketusername>/testrepo
the ouput contained my UUID. I then obviously deleted the unsafe public repo.
Solution 3:[3]
When using authenticated access you can make a GET request to /2.0/user and you will get the authenticated user's information:
$ curl -H "Authorization: Bearer $TOKEN" https://api.bitbucket.org/2.0/user
You need the value of account_id to access the API resources.
From: https://developer.atlassian.com/bitbucket/api/2/reference/resource/user
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | SamK |
| Solution 3 | Juca |
