Skip to content

hubcli group member rm

Removes group membership for a specified user or group.

The command has the following format:

hubcli group member rm [flags] group-name

where:

flags
One or more optional flags that provide additional control over execution of the command.
group-name
The name of the group from which you want to remove a member.

The following flags are available:

-c string or --connection string
Specifies the name of the connection to use. If you do not specify this option, then the default connection is used. If there is no default connection, then you must specify a connection. The first connection created for the Altair SLC Hub instance is set by default as the default Altair SLC Hub instance, but a different default connection can be set using the hubcli connection use command.
--debug
Enables debug logging.
--group group-name
Specifies a group to remove from the group specified by group-name. Repeat this flag to remove multiple groups.
-h or --help
Returns help information for this command.
--user username
Specifies a user to remove from the group specified by group-name. Repeat this flag to remove multiple users.

Examples

The following command removes user jsmith from the BatchJobUsers group:

hubcli group member rm BatchJobUsers --user jsmith
Changes applied successfully

The following command removes multiple users in a single command:

hubcli group member rm BatchJobUsers --user jsmith --user mjones
Changes applied successfully

Running hubcli group member list BatchJobUsers --users --direct confirms the members were removed:

 NAME          MEMBER TYPE  MEMBERSHIP TYPE
 Hub User      User         Direct
 Test User 1   User         Direct