The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict a user to a single branch

JBonavita
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

TAGS
AUG Leaders

Atlassian Community Events