Add member with limited access permissions

Vasco Martins June 15, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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

Vasco Martins June 20, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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

Vasco Martins June 22, 2022

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.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2022

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

Vasco Martins June 22, 2022

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

Atlassian Community Events