Skip to content

hubcli user groups

Lists the groups in which the specified user is a member.

The command has the following format:

hubcli user groups [flags] user-name

flags
One or more optional flags for the command that provide additional control over execution:
username
The name of the user for which properties are returned.

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 Hub instance, but a different default connection can be set using the hubcli connection use command.
--debug
Enables debug logging.
--direct
Returns only groups in which the user is a direct member.
-h or --help
Returns help information for this command.
--indirect
Returns only groups in which the user is an indirect member.
--json
Returns the properties for the user in JSON format.