Forums

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

Allow creating branches

t0msk February 21, 2018

Hello,

 

I use Bitbucket Cloud with my team, how is possible to allow creating a branches for members, they have only read permission.

 

I don't want to give a write permission, because according this site https://confluence.atlassian.com/bitbucketserver/using-project-permissions-776639801.html  if you have a write permission you can "Merge pull request" and I don't want members to be able to merge changes to master branch.

 

They permission should be only clone, pull, push (to non-master branches), create branches.

 

Thank you

 

 

1 answer

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 21, 2018

You're looking at the wrong documentation - that's for Bitbucket Server, which is not the same as Bitbucket Cloud. Have a look at https://confluence.atlassian.com/bitbucket/branch-permissions-385912271.html instead; you can use that to control who can push to master or use pull requests to merge to master.

To answer your original question, though: read-only users cannot create branches in the UI, because creating a branch involves writing to the repo.

t0msk February 21, 2018

Ah thanks, so I need to give them write access, but set branch permissions for master branch only to specific members who can merge to master, right?

Like Sascha Johannes likes this
brunodantas00 May 10, 2018

@jredmondThanks for your reply. I'm also facing a scenario like this, where we have:

master branch - where only the admin group can commit or create pull requests

development branch - where the developers can create branches, develop the features and create a pull request to that branch

 

The problem is, when i grant to developers group access to write ON DEVELOPMENT BRANCH they can also commit directly to MASTER.

 

Any ideas how to solve this problem? 

 

* We are using teams, inside of that team we have admin and developers,

* We are using bitbucket cloud

 

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events