Skip to content

hubcli user get

Returns the properties for a specified user.

The command has the following format:

hubcli user get [flags] username

flags
One or more optional flags that provide additional control over execution of the command.
username
Specifies 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 Altair SLC Hub instance, but a different default connection can be set using the hubcli connection use command.
--debug
Enables debug logging.
-h or --help
Returns help information for this command.
--json
Returns the properties for the user in JSON format.

Examples

Running hubcli user get jsmith returns:

 User Details
 User Name            jsmith
 Enabled              true
 Display Name         John Smith
 Email                [email protected]
 ID                   298a0440-a0d2-4d02-b934-79f1b9404ab0
 Created              2026-09-09 06:16:38 UTC
 Unix Username        jsmith
 Unix Home Directory  /home/jsmith
Running hubcli user get jsmith --json returns:

{"_id":"298a0440-a0d2-4d02-b934-79f1b9404ab0","userName":"jsmith","email":"[email protected]","enabled":true,"invitationPending":false,"firstName":"John","lastName":"Smith","displayName":"John Smith","unixUserName":"jsmith","unixHomeDirectory":"/home/jsmith","_created":"2026-09-09T06:16:38.000Z"}