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

How to restrict a user to a single branch

JBonavita December 1, 2019

Every once in a while I need to grant read access to a user but I want to restrict them to a single branch. Is this possible?

2 answers

1 vote
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 2, 2019

Hello @JBonavita,

No, this is not possible: repository is the minimal unit for read access. Neither Git nor Mercurial have a concept of partial cloning of the repository. Bitbucket follows this concept in terms of access to the source in the web UI. What you can do on the branch level in Bitbucket is restrict write access — this is called branch permissions.

Let me know if you have any questions.

Cheers,
Daniil

0 votes
Joao Sgreccia
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 2, 2019

Hi @JBonavita ,

Unfortunately there isn't a way to restrict a user to a single branch. However, you can play around with branch permissions which might provide some insights to solve your problem in a different way.

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events