简体   繁体   中英

How to manage Folder specific Permission in TFS?

Your quick help will be highly appreciated...

I have created a project in TFS 2018, In this project we have multiple folders as every folder is related a to a component (Each component will have separate code skeleton as well) in the application.

Every folder will have their separate admin... an admin of a folder (eg admin of 'Gate' folder should not be able to change anything in another folder except gate.)

In Add. to admin, users also restricted to particular/allowed folder. How we can manage such folder specific restrictions within a project???

A screenshot for project directory is Image for Sample Project Dir. attached.

TFS with GIT does not support permissions for folders. I think, you may consider to use TFVC as version control or to use a separate git repo for each component (TFS supports multiple git repo in one team project Exercise 7: Managing repositories ).

For TFVC it's available, however there is some differences between TFVC and Git.

TFVC and Git have different security models so it's not possible to lock down a specific path in a Git repo like you do in TFVC. With Git repos in TFS you could either:

  1. Apply permissions to a branch
  2. Or, if you want to lock down changes to a specific path in a branch is to switch on branch policies and use the code reviewer policy to require a reviewer to approve changes in a specific path of your code base.

According to your code, seems you are using git as your source control, you may have to use above solution as workaround.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM