Can I grant user permission to a repository without granting permission on the project? Edited

I don't want nor need some additional users to have permissions to all the repositories in a bitbucket project, I only want to extend permission to them on one specific repository. 

I attempted to add with permissions in the repository's permission configuration while not adding them to the project level permissions.  However the user does not see the repository in the listing of repositories that they can access. 

Should I be able to accomplish this with the way that Bitbucket permissions work?

1 answer

0 votes

Hi Daniel,  are you using Bitbucket Cloud or Server? 

You should be able to grant permissions to a specific repository, without necessarily granting access to all the repos in the project. You can do that from https://bitbucket.org/<team-name>/< rep-name>/admin/access. I've tried reproducing your situation in Bitbucket Cloud and I was able to achieve it with no problems.  

If that user can still not see the repository, can you let us know the the name of the repository and the owner of the repository, as well as the username of the user affected? If you don't want to share that information publicly, you can submit a support ticket at support.atlassian.com. Please make sure to mention this ticket so we know your case is being taken care of. 

Cheers!

Ana

Bitbucket Server.  Turns out that you have to navigate to a repository permissioned in this way via the Projects list, it does not appear in the Repositories list (where my user was looking). 

Anna hello

I am using Server API v1.

I need to add a new user to Repository permission by SERVER REST API.

How I can do it by my code ?

Even I added a new user manually to Repository and tryed to change his permission by the following link https://cisbitbucket01/rest/api/1.0/projects/Test/repos/kuku/permissions/users?name=username&permission=REPO_WRITE"

It doesn't change.

Please help me.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

427 views 6 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you