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:
- Log into your Bitbucket account.
- Create an app password > https://support.atlassian.com/bitbucket-cloud/docs/app-passwords
Please make sure to grant at leastAccount: read
andWorkspace Membership: read
permissions to the password. - 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}'
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.
Comments
Article is closed for comments.