Allow writes access to a restricted branch (master) to the default git user

Hi there,

 

How can I control the access level of the default git user in BitBucket?

I am using ssh keys to authenticate our jenkins instance towards BitBucket. I want to limit write access to our master branch (making it read only for all users), but this makes it impossible to create new tags etc.

How can I allow the git (ssh key authenticated) user to write to the master branch, without everyone else can write to the same branch?

 

/Tue

1 answer

0 votes

Hi Tue, do you know about branch permissions? Branch permissions allow you to control which users or groups can write or merge to any branch and create permissions for a specific branch pattern.

If you want to learn more, you can read Branch permissions and Using branch permissions.

Let us know if you have questions!

Cheers,

Ana

Hi Ana,

Thanks. I know of this, but this will not help me in this case.

I need to control the access rights for the git user. The default user used when performing a clone operation using a private key.

I want to permit "normal" users from changing the branch and our jenkins build server to write to our master branch (creating tags, branches etc).

How can I do that?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

451 views 6 9
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