Skip to content

hubcli group member list

Lists memberships of a specified group.

The command has the following format:

hubcli group member list [flags] groupname

where:

flags
One or more optional flags that provide additional control over execution of the command.
group-name
The name for the group for which you want information.

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.
--direct
Only includes in the list members that have a direct relationship with groupname.
--groups
Only includes group members in the list.
-h or --help
Returns help information for this command.
--indirect
Only includes in the list members that have an indirect relationship with groupname.
--json
Returns the list of group members in JSON format.
--users
Only includes user members in the list.

Note: ls is an alias of list.

Examples

Running hubcli group member list HubUsers returns all members, both direct and indirect, including users and groups:

 NAME                    MEMBER TYPE  MEMBERSHIP TYPE
 General Consumer        User         Direct
 BatchJobUsers           Group        Direct
 DataAccessConsumers     Group        Direct
 LinkSessionUsers        Group        Direct
 Hub User                User         Indirect
 PipelineDevelopers      Group        Indirect

Running hubcli group member list HubUsers --users returns only user members:

 NAME                    MEMBER TYPE  MEMBERSHIP TYPE
 General Consumer        User         Direct
 Hub User                User         Indirect
 Cluster Admin           User         Indirect

Running hubcli group member list HubUsers --groups returns only group members:

 NAME                    MEMBER TYPE  MEMBERSHIP TYPE
 BatchJobUsers           Group        Direct
 DataAccessConsumers     Group        Direct
 LinkSessionUsers        Group        Direct
 PipelineDevelopers      Group        Indirect

Running hubcli group member list HubUsers --direct returns only direct members:

 NAME                    MEMBER TYPE  MEMBERSHIP TYPE
 General Consumer        User         Direct
 BatchJobUsers           Group        Direct
 DataAccessConsumers     Group        Direct
 LinkSessionUsers        Group        Direct

Running hubcli group member list HubUsers --indirect returns only indirect members — that is, members inherited through membership of a subgroup:

 NAME                    MEMBER TYPE  MEMBERSHIP TYPE
 Hub User                User         Indirect
 Cluster Admin           User         Indirect
 PipelineDevelopers      Group        Indirect

Note: ls is an alias of list.