Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

xavier delecroix September 6, 2016

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

Ask your question here...

1 answer

1 accepted

1 vote
Answer accepted
Felix
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 6, 2016

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

 

xavier delecroix September 7, 2016

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
TAGS
AUG Leaders

Atlassian Community Events