How do i set branch permissions for a user in bitbucket server?

Hello,

I installed Bitbucket Server and trying to setup new repositories with multiple branches. I created multiple users and trying to add them to branch permissions option in a repository. Except me i am unable to find any other uder i just added. Please let me know if i have to do anything else to find user in add permissions option in branch permission. 

3 answers

1 votes

Hi @sravan kumar velagapuni,

the user and group picker in the branch permissions administration screen will only show users and groups that have at least read level access to the repository.

You should make sure that the users you are trying to add either:

  1. are part of a group that has access to the repository
  2. have been granted explicit access to the repository

Check out this KB article linking to the different levels of permissions in Bitbucket Server.

I hope that helps, 

Felix

0 votes

Branch permissions are actually restrictions. Are those users already added under repository level or project level?

You are restricting access to certain users when they are added under branch permissions.

0 votes

Hi Sravan

You will only be able to select users who have read/write access to the repository. In repository permissions/project permissions, check that the new users you created have access to the repo. Then add branch level permissions.

For example, if stash-users group has user-1, user-2, user-3 and the group has read/write access to Repo-A, then you can set branch level permissions to user-1, user-2, user-3.

If only user-3 has read/write access to Repo-A, then you will only be able to set branch level permissions to user-3 and not user-1 and user-2.

From what you are describing, the users you have created do not have read/write permissions to your repository. Fixing that should resolve your issue.

Thanks

Bhushan

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

682 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot