Is there any way to allow non-admin project/repo user to lock branch (set branch permission) ?



Is there any way to allow user to set branch permission (Lock branch) without providing Admin access of Project/Repository to that users ? Any API / Command Line way ?

Please suggest.


Detailed Explanation :

We need to provide access to few CM members to lock particular branch during build and unlock it after build. So in order to lock particular branch in Bit-bucket we need to apply "Prevent all changes, except by" branch permission to be set.

Now only Project Admin / Repository Admin can set branch permission.


So, Is it possible to allow bit-bucket user to set Branch Permission ( I want "Prevent all changes, except by:" permission to be set by user mainly for locking branch) without providing Admin access of that Repository / Project to that user ? Any API / Command Line way ?




1 answer

0 vote

Hi Hardik, I'm afraid that's not possible, adding branch permissions requires project or repo admin permissions as explained at  Using branch permissions.



Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

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

2,044 views 1 5
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