Azure DevOps Git存储库权限:如何优先考虑“允许”而不是“拒绝”?

huangapple go评论53阅读模式
英文:

Azure Devops git repository permissions: how to prioritize 'Allow' over 'Deny'?

问题

我在Azure DevOps中创建了一个Git仓库。我需要以这样的方式限制对它的访问,使得仓库只对TeamA可访问。当我对所有其他组设置了拒绝权限,并仅允许TeamA时,如果用户既属于Contributors又属于TeamA,拒绝权限会优先生效。请帮助我实现这个目标,好吗?我不能授予所有Contributors访问权限,除了TeamA中的成员。

我尝试了仓库的安全设置。

英文:

I have a git repository created in Azure Devops. I need to restrict access to it in such a way that the repo is accessible only for TeamA. When I set Deny for all other groups and Allow only for TeamA, the permission Deny takes preference when the user belongs to both Contributors and TeamA. Would you please help me to achieve this? I cannot grant access to all contributors except for those in TeamA.

I tried security settings in repository.

答案1

得分: 0

使用“未设置”权限作为隐式拒绝。正如您所发现的那样,明确的“拒绝”权限优先于明确的“允许”权限。

英文:

Use the Not Set permission as an implicit Deny. As you've discovered, explicit Deny takes precedence over explicit Allow.

huangapple
  • 本文由 发表于 2023年6月1日 23:51:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76383689.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定