Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,023
Community Members
 
Community Events
165
Community Groups

Add member with limited access permissions

Hi to all,
Is it possible to add a member to a project but with limited view over the entire project?

The user could only have access and work in particular parts of the project without the possibility to download the entire code of the full project.


I can't find any articles on the subject.
Thank you in advance.

1 answer

0 votes
Norbert C Atlassian Team Jun 20, 2022

Hi Vasco,

Thanks for reaching out to Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

Unfortunately what you would like to achieve is not possible with project permissions. What I would like to suggest you is to provide users access on a repository level.

For example, user A has access to repo a,b,c,d
user B has access to repo a,b,c
etc.

Please let me know if this helps.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Thank you for the help,
Meaning the repo a,b,c,d would be parallel brunches with only parts of the project?
And then I could copy over manually the code that is important and merge it with the main.

If this is the case, is not the most elegant solution but it might work.

best regards
Vasco

Norbert C Atlassian Team Jun 21, 2022

Hi @Vasco Martins 

Thank you for your reply. I believe I might have misunderstood you.

I would like to verify whether by project do you mean a repository where you upload the code or do you mean a Bitbucket Cloud Project?

Please let me know.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Hi Norbert,

I mean a project ongoing in Bitbucket repository.
Based on Configure a project's branching model I can give access to "feature" branch but the programer working on that branch has access and can download the entire code of the project right?
This is for me a security issue since I need a developer to work only in some features.

Hi @Vasco Martins,

Please allow me to step in as Norbert is out of office.

If a user has been granted access to a repository, they can clone/download the whole repository, there is no way to restrict that.

Branch permissions can prevent users from pushing to certain branches, however, they will still be able to clone the whole repository.

You can look into using Git Submodules:

Let's say you have repo A, with the code that only you can access.
You can create repo B, and make it a submodule of repo A. Repo B will also have only part of your code, and you can grant access to a developer only to repo B.

Kind regards,
Theodora

Hi @Theodora Boudale 

Thank you for the information, I was imagining that would be the solution.

Now the issue is selecting the right information to share and how to import it back to the main full development branch.

Best regards

Vasco

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,249 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you