英文:
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
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论