Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

List Group Members

view on GitHub

List Group Members is available as a pgutil command, and will return the list of group members assigned to a specified Group.

Command Specification (CLI)

The security groups members list command is used to list all group members assigned to a specified Group.

The --name option is always required.

Listing group members in a group requires the Group name (e.g. Developers)

pgutil security groups members list --name=Developers

Example output:

John Smith
David Jones
James Brown

HTTP Request Specification

This command is not available as an HTTP endpoint, however you can use the List Group Members HTTP endpoint GET /api/security/groups/list to return a list of all groups and their assigned members.

Alternatively, to return a single group you can run the following PowerShell script:

(Invoke-RestMethod -Headers @{"X-ApiKey"="abc12345"} "https://proget.corp.local/api/security/groups/list") |
    Where-Object { $_.name -ieq "«group-name" } |
    ConvertTo-Json -Depth 2

This will return a SecurityGroup (see SecurityGroup.cs) object of the Group specified.