Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,527
Community Members
 
Community Events
165
Community Groups

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

Edited

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 Nov 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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,230 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you