Get all project valid users from TFS using CMD
Open the developer command prompt and execute the below command by changing the collection URL
TFSSecurity.exe /imx "Project Valid Users" /collection:http://ws2012r2:8080/tfs/FabrikamFiberCollection
output:
Microsoft (R) TFSSecurity - Team Foundation Server Security Tool
Copyright (c) Microsoft Corporation. All rights reserved.
The target Team Foundation Server is http://vsalm:8080/tfs/fabrikamfibercollecti
on.
Resolving identity "Project Valid Users"...
Error: Multiple identities found matching 'Project Valid Users'. Please specify
one of the following identities:
- [FabrikamFiber]\Project Valid Users (vstfs:///Classification/TeamProject/fd6fa
263-b3f9-45e3-96af-ad67e75c9ff7\Project Valid Users)
- [Demo]\Project Valid Users (vstfs:///Classification/TeamProject/ac34434e-5ee2-
4351-a07f-7b2ccf02b96c\Project Valid Users)
- [DemoSP]\Project Valid Users (vstfs:///Classification/TeamProject/dbf96146-77f
8-46c4-9efc-0d6fec6b1925\Project Valid Users)
- [testing]\Project Valid Users (vstfs:///Classification/TeamProject/3fc600d0-13
96-47e3-8364-1402599732af\Project Valid Users)
- [test]\Project Valid Users (vstfs:///Classification/TeamProject/5dc525a7-4784-
4f5f-99db-2ef5a65a2a4a\Project Valid Users)
Pick one of the identity then modify the command and execute
TFSSecurity.exe /imx "vstfs:///Classification/TeamProject/fd6fa263-b3f9-45e3-96af-ad67e75c9ff7\Project Valid Users" /collection:http://ws2012r2:8080/tfs/FabrikamFiberCollection
output:
Microsoft (R) TFSSecurity - Team Foundation Server Security Tool
Copyright (c) Microsoft Corporation. All rights reserved.
The target Team Foundation Server is http://vsalm:8080/tfs/fabrikamfibercollection.
Resolving identity "vstfs:///Classification/TeamProject/fd6fa263-b3f9-45e3-96af-ad67e75c9ff7\Project Valid Users"...
SID: S-1-9-1551374245-4249022485-1363183687-2676786528-2474025328-0-0-0-0-3
DN:
Identity type: Team Foundation Server application group
Group type: EveryoneApplicationGroup
Project scope: FabrikamFiber
Display name: [FabrikamFiber]\Project Valid Users
Description: Members of this group have acess to the team project.
15 member(s):
[U] VSALM\Brian (Brian Keller)
a [A] [FabrikamFiber]\Project Administrators
[U] VSALM\BHarry (Brian Harry)
[G] VSALM\DemoUsers
[U] VSALM\Adam (Adam Barr)
[A] [FabrikamFiber]\Fabrikam Fiber Database Team
[A] [FabrikamFiber]\Fabrikam Fiber Devices Team
[A] [FabrikamFiber]\Fabrikam Fiber Web Team
[A] [FabrikamFiber]\Fabrikam Fiber Leadership Team
[A] [FabrikamFiber]\Contributors
[U] VSALM\Annie (Annie Herriman)
[A] [FabrikamFiber]\Readers
[A] [FabrikamFiber]\Build Administrators
[U] VSALM\Julia (Julia Ilyiana)
[A] [FabrikamFiber]\Fabrikam Fiber Ops Team
Member of 1 group(s):
e [A] [FabrikamFiberCollection]\Project Collection Valid Users
Done.