Reputation: 219
We have an Azure Devops Project with several repositories. However we only want to give access to a couple of repos to another team.
I've setup a group called Outsource
(oddly it doesn't show under Project Settings > General > Teams) and within the Project Settings > Repos > Repositories section i've given the group permissions.
However they can't access theses repos from My Org > Repos (red icon). Also they can't clone the repos either.
The one user in the 'Outsource' group is setup as a basic user.
Can anyone tell if I'm missing a setting? It doesn't seem like providing permission against a repo does anything? I also gave them access to a different project and they can access that fine.
Upvotes: 13
Views: 45886
Reputation: 23
Your users are currently experiencing difficulties with cloning or accessing repositories, as evidenced by a red icon. Moreover, they're unable to clone repositories successfully. However, I can provide you with a comprehensive explanation of how to resolve this issue. Dont Worry.
So first step is which you already did is making an organization.
now you have to give access to users so they have the option of red icon for Repos. there are several steps given below.
from the left bottom corner click on Organization settings. [1]: https://i.sstatic.net/kzfF3.png
Navigate to the left sidebar and locate the 'General' section. Within this section, you'll find the 'Users' option. Click on it to proceed.
You will find a user list where you can both add new users and update existing ones. In either scenario, once a new user is added or an existing user is updated, make sure to set their permissions to the 'Basic' level. This will enable the user to view the Repos with the red icon button.
The user now has access to the 'Repos' section. Furthermore, it's time to configure the user's permissions, granting them access to specific repositories or all repositories.
Next, enter the Organization you've created, and in the bottom-left corner, click on 'Project settings' in the left-hand corner.
Within it, navigate to the 'Repos' section, and then proceed to click on 'Repositories.' This action will open the 'Repositories' tab, followed by the adjacent 'Security' tab.
Select the repository to which you intend to grant user access. Once selected, navigate to the 'Security' tab located at the top. Here, you'll find the sections for both groups and users. At the upper portion, an input field is available for adding a user by either email or username. After entering the user's information and clicking on it, they will be promptly added. On the right-hand side, a range of permissions will be presented, allowing you to choose specific access levels for the user.
Your user now possesses the necessary access and can commence work within the designated repository they've been granted access to. I've aimed to keep the instructions straightforward, hoping they prove beneficial to you.
Upvotes: -4
Reputation: 8308
Stakeholder user cannot access private project repo.
The permission group Outsource is collection level group, we recommend that you open the project settings and create a project level permission group and add these users.
Configure permission
Open project settings-> Repositories->click one repo-> select the repositories which you want to give access to another team->add the permission group and set the permission Read to Allow. Then the group users can access these repositories.
Select the repositories which you do not want to give access to another team->add the permission group and set the permission Read to Deny. Then the group users cannot access these repositories.
Upvotes: 15