单个存储库的Azure DevOps权限 [英] Azure DevOps Permissions for Individual Repositories

查看:105
本文介绍了单个存储库的Azure DevOps权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在ADO上创建了一个新项目(MyProject).在其中,我有2个存储库(MyRepo1和MyRepo2).我想邀请其他用户向MyRepo1提供代码,但不希望他们看到MyRepo2.该怎么办?

Let's say I have created a new project (MyProject) on ADO. In it, I have 2 repositories (MyRepo1 and MyRepo2). I would like to invite another user to contribute code to MyRepo1, but don't want them seeing MyRepo2. How can this be done?

我尝试为MyRepo1创建一个团队(Team1),并将用户添加到该团队中.但是,在我的项目下,他们仍然看不到ADO中的任何内容.如果我将它们添加到项目的默认团队中,则他们可以看到所有存储库(错误).这是我设置Team1的方法:

I have tried creating a team (Team1) for MyRepo1 and adding the user to that team. However, they still cannot see anything in ADO under my project. If I add them to the default team of the project, they can see all the repos (bad). This is how I set up Team1:

顺便说一句,如果有人知道关于使用和编排组织,项目,团队,区域,Azure DevOps组,用户,存储库等的正确方法的良好综合参考,请告诉我.每当我认为自己掌握了这些东西时,就会陷入这种情况.添加Azure AD和Azure订阅,有时情况会变得很繁琐.

As an aside, if anyone knows of a good comprehensive reference for the proper way of using and orchestrating Organizations, Projects, Teams, Areas, Azure DevOps Groups, Users, Repositories, etc., please let me know. Each time I think I have these things under control, I get stuck in some scenario like this one. Add in Azure AD and Azure Subscriptions, and things get pretty hairy sometimes.

推荐答案

我知道这是一个老问题,但我之所以来到这里是因为我面临同样的挑战,并希望提出自己的解决方案,以防其他人发现自己陷入困境.同样的情况.

I know this is an old question, but I came here because I had the same challenge, and wanted to present my solution, in case others have found themselves in the same situation.

首先转到项目设置|权限并为所选用户添加新组.选择新创建的组,然后在查看项目级别信息"中设置允许".

First go to Project Settings | Permissions and add a new group for the selected users. Choose the newly created group and set Allow in 'View project-level information'.

返回项目设置",单击存储库",然后单击要授予访问权限的存储库.单击权限,然后搜索新组.在相关权限中设置允许"(对我来说,这是贡献",贡献拉取请求",创建分支",创建标签",管理注释"和读取".)

Back in Project Settings click Repositories and click the Repository, you want to grant access to. Click Permissions and search for the new group. Set Allow in relevant permissions (for me it was Contribute, Contribute to pull requests, Create branch, Create tag, Manage notes, and Read).

该组中的用户可以看到项目概述,但没有管道,只有选定的存储库.

The users in this group can see the project overview, but no pipelines and only the selected repository.

您不必担心以后添加的存储库对该组也将可见.

You do not need to worry that repositories added later will be visible to this group either.

这篇关于单个存储库的Azure DevOps权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆