hubcli user setpassword¶
Sets the password for a specified user. This cannot be a user imported from LDAP.
The command has the following format:
hubcli user setpassword [flags] username
where:
- flags
- One or more optional flags that provide additional control over execution of the command.
- username
- The user name for which the password is set.
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.
-hor--help- Returns help information for this command.
--password pwd- Specifies a password for the user. If you do not specify a password, you will prompted to provide one. The password must meet the password policy configured for the Altair SLC Hub instance.
--temporary- Specifies that the password created is temporary, and the user will need to change it at first login.
Examples¶
The following command sets a new password for user jsmith.
If no --password flag is provided, you are prompted to enter and confirm a password that meets the configured password policy:
hubcli user setpassword jsmith
Password policy:
* minimum length 15
* must not be contained in blacklist
enter password :
confirm password :
Password for user jsmith successfully updated