Partager via


/g command: List the groups

Use /g to list the groups in a team project, in a team project collection, or across Team Foundation Server.

Required Permissions

To use the /g command, you must have the View collection-level information or the View instance-level information permission set to Allow, depending on whether you are using the /collection or /server parameter, respectively. To use the /g command within the scope of a single team project, you must have the View project-level information permissions set to Allow. For more information, see Permission reference for Team Foundation Server.

TFSSecurity /g [scope] [/collection:CollectionURL] [/server:ServerURL]

Parameters

Argument

Description

scope

Optional. Specifies the URI of the team project for which you want to display groups. To obtain the URI for a team project, open Team Explorer, right-click the team project, click Properties, and copy the entire entry for URL.

/collection:CollectionURL

Required if /server is not used. Specifies the URL of a team project collection in the following format: http://ServerName:Port/VirtualDirectoryName/CollectionName

/server:ServerURL

Required if /collection is not used. Specifies the URL of an application-tier server in the following format: http://ServerName:Port/VirtualDirectoryName

Remarks

Run this command on an application-tier server for Team Foundation.

The /g command of the TFSSecurity command-line utility displays information about every group within the selected scope. This scope can be the team project collection (/server) or the application-tier server (/instance). If used with the scope of a team project, it will display information only about the groups associated with that team project.

Example

The following example displays information for all the groups within a team project collection.

>TFSSecurity /g /collection:CollectionURL

See Also

Other Resources

Change groups and permissions with TFSSecurity

How to: Create a Global Group

Team Project Groups