英文:
Restrict External access to Specific branches from an Azure Devops Repository
问题
我有在我的Azure DevOps组织中有几个存储库。
我想限制外部用户访问存储库中的特定分支。
我已检查了存储库安全性以及分支安全性,但无法找到解决方法。
寻求帮助。
创建了一个组并添加了一个用户。
为包含存储库的项目提供了阅读访问权限。
取消了对存储库下所有分支的阅读访问权限。
该用户仍然能够访问存储库的所有分支。
英文:
I have several repositories in my Azure DevOps organization.
I want to Restrict external users' access to Specific branches from a repository.
I have checked repository security as well as branch security, but unable to figure a way around.
Looking for help.
Created a group and added a user.
Provided reader access to the project containing the repository.
Removed reader access to all the branches under the repository.
The user was still able to access all the branches of the repository.
答案1
得分: 1
Git权限不支持分支级别的读取限制。对于外部用户,您可以:
- Fork您的主要repo:Forks
- 拒绝外部用户访问主要repo。
英文:
Git permissions do not support read restrictions on the branch level. For external users, you may:
- Fork your main repo: Forks
- Deny access to the main repo for your external users.
答案2
得分: 0
你可以限制用户通过Azure DevOps对特定的Git分支进行修改,但无法限制他们查看个别分支并拉取它的能力。分支安全性还允许你限制一些推送、拉取请求和绕过Azure DevOps中设置的分支策略的行为。
英文:
You can restrict the ability of users to contribute to a specific Git branch and modify it through Azure DevOps, but you can't restrict their ability to see and individual branch and pull it.
Branch security also allows you to restrict some behavior on pushes, pull requests, and bypassing branch policies set up in Azure DevOps.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论