Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Endpoint /workspaces/<workspace>/permissions/repositories returning HTTP 500

Dan Witkowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2021

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>

1 answer

0 votes
seanaty
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 24, 2021

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).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events