/g- Command
Use /g- to remove a user or a user group from an existing group.
Required Permissions
To use the /g- command, you must be a member of the Team Foundation Administrators group. For more information, see Team Foundation Server Permissions.
TFSSecurity /g- groupIdentity memberIdentity /server:servername
Parameters
Argument | Description |
---|---|
groupIdentity |
Specifies the group identity. For more information about valid identity specifiers, see TFSSecurity Identity and Output Specifiers. |
memberIdentity |
Specifies the member identity. For more information about valid identity specifiers, see TFSSecurity Identity and Output Specifiers. |
/server :servername |
Required. Specifies the name of the application tier server. |
Remarks
Run this command on the local application tier computer.
You can also add users and groups to an existing group using Team Explorer. For more information, see How to: Remove Users from a Team Project Group, How to: Remove Users from a Default Group or How to: Remove Users from a Server-Level Group.
Example
The following example removes the user "ajesper" from the "Team Foundation Administrators" global group.
>TFSSecurity /g- "Team Foundation Administrators" n:ajesper /server:MyATServer
See Also
Tasks
How to: Create a Server-Level Group
Other Resources
TFSSecurity Command-Line Utility Commands
Team Project Groups
Default Groups