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 stringor--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 usecommand. --debug- Enables debug logging.
--direct- Returns only groups in which the user is a direct member.
-hor--help- Returns help information for this command.
--indirect- Returns only groups in which the user is an indirect member.
--json- Returns the group memberships in JSON format.
Examples¶
Running hubcli user groups jsmith returns all group memberships, both direct and indirect:
GROUP NAME MEMBERSHIP TYPE
BatchJobUsers Direct
DataAccessConsumers Direct
ExecutionProfileUsers Direct
LinkSessionUsers Direct
PipelineUsers Direct
PublishedLibraryConsumers Direct
HubUsers Indirect
Running hubcli user groups jsmith --direct returns only groups in which the user is a direct member:
GROUP NAME MEMBERSHIP TYPE
BatchJobUsers Direct
DataAccessConsumers Direct
ExecutionProfileUsers Direct
LinkSessionUsers Direct
PipelineUsers Direct
PublishedLibraryConsumers Direct
Running hubcli user groups jsmith --indirect returns only groups in which the user is an indirect member — that is, groups inherited through membership of another group:
GROUP NAME MEMBERSHIP TYPE
HubUsers Indirect