Created
September 11, 2012 17:33
-
-
Save edwinf/3700093 to your computer and use it in GitHub Desktop.
Add Project Collection Administrators to a TFS project that is missing the permission definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Grab the Guid of the project in question. I did through through VS 2010 and clicking the properties of the project itself. | |
2) Grab the SSID of the project Collection Administrators. (You might be able to skip this step, I just couldn't get the syntax right in TFSSecurity to use it by name). | |
tfssecurity /i "Project Collection Administrators" /collection:<collectionPath> | |
output: | |
SID: S-1-********** | |
DN: | |
Identity type: Team Foundation Server application group | |
Group type: AdministrativeApplicationGroup | |
Project scope: Server scope | |
Display name: [ProjectCollection]\Project Collection Administrators | |
Description: Members of this application group can perform all privileged oper | |
ations on the Team Project Collection. | |
Now run the following command: | |
tfssecurity /a+ Identity vstfs:///Classification/TeamProject/<ProjectGUID> ManageMembership SID:<SID> ALLOW /collection:<CollectionPath> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment