Forums

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

How Do I Replicate Branch Permissions Across Multiple Repos Using BB Cloud?

Deleted user March 19, 2019

I want to ensure each time a new repo is created it gets our standard branch permissions. I also want to replicate the permissions across our existing branches.

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2019

Hello Tony,

Your best option to control branch permissions across multiple repos within Bitbucket cloud would be to use the REST API to procedurally manage your permissions. This would allow you to create scripts which you may execute when adding a branch that needs standard permissions or verifying your branch permissions are set properly. The REST API endpoint, in this case, would be /2.0/repositories/{username}/{repo_slug}/branch-restrictions.

Further information on the Bitbucket Cloud v2 REST API can be found at About Bitbucket Cloud REST API.

I hope this proves helpful and you’re able to replicate permissions across multiple branches.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events