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.

Remove Group Member

view on GitHub

Remove Group Member is available as a pgutil command and an HTTP Request, and will remove a specified group member from a Group in ProGet.

Command Specification (CLI)

The security groups members remove command is used to remove a group member from a Group in ProGet.

The --name and --member options are always required.

Removing a group member from a group requires the Group name (e.g. Developers) and the Group member name (e.g. "jsmith"):

pgutil security groups members remove --name=Developers --member="jsmith"

Note source options must also be specified unless you have the "Default" source configured. See Working with Sources to learn more.

HTTP Request Specification

To remove a member from an existing Group, POST to the following URL with an appropriate API Key and a SecurityGroup (see SecurityGroup.cs) object as the request body.

POST /api/security/groups/update

To remove a member, simply omit their username from the Users array in the updated SecurityGroup object. Any User not included in the list is removed from the Group. As this endpoint replaces the member list, the request body must contain the desired list of members.

HTTP Response Specification

A SecurityGroup object will be returned on a successful 200, indicating that the Group has been updated. A 403 response indicates a missing, unknown, or unauthorized API Key.