-
Suggestion
-
Resolution: Unresolved
-
None
Every Access Token is associated with a bot user, which is automatically created and unique to each access token.
In some use cases, it's necessary to get the UUID associated with the bot user to filter other API endpoints for resources created by this bot.
E.g Filter pull requests created using the bot user.
However, it's currently not possible to get the UID of the bot user using the /user endpoint :
curl --request GET --url 'https://api.bitbucket.org/2.0/user' --header 'Authorization: Bearer {REPOSITORY_TOKEN}' --header 'Accept: application/json' {"type": "error", "error": {"message": "Token is invalid or not supported for this endpoint."}}
This feature request is to implement support for using repository access tokens, project access tokens, and workspace access tokens in the Get current user (/user) endpoint to get the data (uuid) associated with the bot user.