Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23528

Allow using Access Tokens (WAT,PAT,RAT) in Get Current User API endpoint

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      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.

       

              Unassigned Unassigned
              641e77b2eb21 Patrik S
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: