How to confirm which workspaces your Bitbucket user has access to

Bitbucket workspaces translate into CircleCI organizations.

If you want to confirm which organizations you should be able to see in the CircleCI UI, as well as, the level of permissions your Bitbucket user should have on these organizations, you can query the Bitbucket API:

  1. Log into your Bitbucket account.
  2. Create an app password > https://support.atlassian.com/bitbucket-cloud/docs/app-passwords
  3. Run the following cURL request:
    curl -u"your_Bitbucket_username:your_app_password" --request GET 'https://api.bitbucket.org/2.0/user/permissions/workspaces'|jq -rs '.[].values[]|{permission: .permission, workspace: .workspace.slug}'

Note: you can download jq here.

The request will return the list of Bitbucket workspaces your Bitbucket user has access to, as well as, the level of permissions for each workspace.

Was this article helpful?
1 out of 3 found this helpful

Comments

0 comments

Article is closed for comments.