Skip to content

Instantly share code, notes, and snippets.

@edwinf
Created September 11, 2012 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwinf/3700093 to your computer and use it in GitHub Desktop.
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
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