You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am a Bitbucket administrator and related to an audit we are asked to provide a list of users and which repositories each has write access to. Since there is no support for this in the UI I am forced to use the API to accomplish this task.
The documentation seems to indicate that the endpoint I am looking for is at:
https://api.bitbucket.org/2.0/workspaces/<slug>/permissions/repositories
However all calls to this endpoint return an HTTP 500 with a message like the following:
{"type": "error", "error": {"message": "Something went wrong", "id": "6f4a90adf86646fb8ed17c9df9ca2825"}}
Calls to https://api.bitbucket.org/2.0/workspaces/<slug>/permissions work fine but don't include the information I need.
Since this is in the cloud I have no visibility into what is happening on the server so I am pretty stuck at the moment.
EDIT:
I can also view the permissions at https://api.bitbucket.org/2.0/workspaces/<slug>/permissions/<slug>
Unfortunately this is a known issue in that this page times out for large teams.
I suggest watching/voting for this public bug: https://jira.atlassian.com/browse/BCLOUD-17803
As a work-around you can check the permissions for each repository individually with this API https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-permissions-repositories-get (basically append the repo slug to the path you're using).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.