How to give users Branch create permissions

Mohammad Imran Ansari February 1, 2023

I need to find out how to put RBAC policies in group where I can give only specific branch create permission to cut out branches in bitbucket. Not an Admin level permission 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2023

Hi @Mohammad Imran Ansari and welcome to the community!

Users can have one of the following access levels to a repo:

  • Admin
  • Write
  • Read

You can grant users write access to a repo and they will be able to create branches and also push to this repo.

You can see more details about the three levels of access here:

You can use branch restrictions if you would like to prevent users from pushing to certain branches:


All users that have been granted write or admin access to a repo can create branches.

Branch creation can be restricted only from Bugfix, Feature, Hotfix, and Release branches defined in the Branching model of your repo. If you create a branch restriction "By branch type" for these types of branches, only users who have write access in the respective branch restriction will be able to create a branch of this type, and the rest will not.

It is not possible to restrict branch creation in any other way for users with write or admin access.

If you have any questions, please feel free to let me know.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events