TFS registration policy restriction for specific users

The title says that everything is real. Our team wants to somehow limit the TFS registration policy to some selected users.

We are currently using something similar, but we are restricting the server paths. We have a user path policy associated with the work item policy in our project, and it works as expected. I wondered if it would be wise to create another similar policy that would have a specific policy for a group of predefined users.

We would like to use a feature such as this code review policy to ensure that code requests are checked before registering new developers who are part of the company, but not for everyone.

+7
tfs visual-studio tfsbuild checkin-policy
source share
2 answers

Here is my custom policy implementation. It allows you to run a child policy if the user does not have specific permissions (is not a member of a specific group).

It can be used with a custom path policy from the TFS power supply and ColinsALMCornerCheckinPolicies Then you can request a code view only for certain projects | files | folders and only if the user does not have permission to register without checking the code.

https://github.com/oleksabor/GroupMembershipPolicy

You said that you migrated from TFS, but I would like to leave an answer here because you did not find a solution for the original question.

+1
source share

It is not possible to do this out of the box, but you can really use the same process as the user path policy. You will need to create and distribute your own validation policy to all members of your team. Try using the Reflector tool or dotPeek to check the user path policy.

Then create your own custom user policy , this is a fairly simple class to implement, the core is the Evaluate method, which will almost duplicate the same method in the user path policy. You can open a simple user dialog for Windows forms to display a list of users to whom this policy applies (I would personally create the option of using blacklists as well as whitelists).

By default, you can find custompathpolicy defined in this assembly:

C:\Program Files (x86)\Microsoft Team Foundation Server 2013 Power Tools\Check-in Policy Pack\Microsoft.TeamFoundation.PowerTools.CheckinPolicies.CustomPathPolicy.dll

+1
source share

All Articles