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 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...

676 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