Skip to content

hubcli group groups

Lists the groups a group belongs to.

A group can itself belong to one or more groups, although there is no requirement for it to do so.

  • A group can have a direct or indirect membership of another group.
  • A group that has direct membership of another group is a subgroup of that group.
  • A group that has indirect membership is a subgroup of a subgroup.

For example, if GroupB is a member of GroupA, then groupB is a direct member of GroupA. If GroupC is a member of GroupB, then GroupC is a direct member of GroupB, and an indirect member of Group A.

The command has the following format:

hubcli group groups [flags] groupname

Flags:

flags
One or more optional flags that provide additional control over execution of the command.
groupname
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 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 groupname has direct membership to.
-h or --help
Returns help information for this command.
--json
Returns the list of group properties in JSON format.