When several branch permission patterns are matched, what is the rule for permission ?

This question is in reference to Atlassian Documentation: Using branch permissions

Ask your question here...

1 answer

1 accepted

1 vote

Bitbucket's branch permissions will first find all matching branch permission rules, then check if for any of those rules an exemption exists for the user attempting the action. 

If no exemptions exist, the user is prevented from carrying out the action. 

If an exemption exists, the action is allowed to carry on. 

 

For example if you have a rule preventing all writes to all branches for everyone, and another rule preventing all writes for the pattern 'bugfix/*' with the user 'admin' exempt, 'admin' could write to all branches and tags that start with 'bugfix' (and nothing else).

 

I hope that answers your question, 

Felix

 

Thanks Felix.
It's perfectly clear !
In other terms: the logical composition of rules is 'OR', not 'AND'.
Regards,
Xavier

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

25,975 views 26 12
Join discussion

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