CLI – Managing Spectrum Connect users and groups
User accounts that can be used to access Spectrum Connect must be individually defined.
Use the sc_users CLI command to add, delete, or display user accounts and to change the password of any specific account. Use the sc_ldap_groups CLI command to add, delete, or display LDAP groups.
- All CLI command arguments are case-sensitive.
- The same operations are available from the GUI as well, as explained in Managing Spectrum Connect users and groups.
- To define LDAP users or groups, you first need to configure the LDAP server. See CLI - Configuring the LDAP server.
| Argument | Use after sc_users to: |
|---|---|
| add -n <username> or add --user_name <username> |
Add the username of the user that may access Spectrum Connect without creating a password for it. You can
add more than one user. For example:
|
| add -n <username> -p <password> or add --user_name <username> --user_password <password> |
Add the username and password of the user that may access Spectrum Connect. You can add more than one user. The
minimum password length is seven characters and it must include at least one letter and one
digit. For example:
|
| change_password -n <username>
-p <new password> or change_password --user_name <username> --user_password <password> |
Change the password of a user account that was
already added. The password that you type for the specified username
is set as the new password. The minimum password length is seven characters
and it must include at least one letter and one digit. For example:
|
| delete -n <username> or delete --user_name <username> |
Delete a user account from the server. For
example:
|
| list | Display the names of currently defined user
accounts. For
example:
|
| -h or --help |
Display help information that is relevant to
sc_users. You can also display help for the add, change_password, or delete argument if it is typed on the command line as well. |
| Argument | Use after sc_ldap_groups to: |
|---|---|
| add -n <groupname> -f or add --group_name <groupname> --force |
Add the groupname of the LDAP group from the LDAP server that may access Spectrum Connect without creating a password for it. You can
add more than one group. For example:
Important: It is not recommended to add both a parent LDAP group and its child user/group at
the same time. If you really need to do this, however, use the -f or
--force argument to add the group.
|
| delete -n <groupname> or delete --group_name <groupname> |
Delete an LDAP group from the server. For
example:
|
| list | Display the names of currently defined LDAP groups. For
example:
Note: Spectrum
Connect will check periodically and asynchronously if LDAP groups and users exist on the LDAP server
when LDAP is enabled. If LDAP groups do not exist on the LDAP server, please delete them from
Spectrum Connect via the web GUI or CLI.
|
| -h
or --help |
Display help information that is relevant to
sc_ldap_groups. You can also display help for the add or delete argument if it is typed on the command line as well. |
| Argument | Use after sc_setting to: |
|---|---|
| modify -n USER_PASSWORD_HISTORY_LEN -v <password retention number> | Prevent the user to submit a new password that
is the same as any of the prior passwords for that account. For
example, to prevent the user to submit a new password that is the
same as the last four prior passwords, enter:
|
| modify -n TOKEN_INACTIVITY_TIMEOUT -v <inactivity timeout in minutes> | Define a time period in minutes after which the Spectrum Connect GUI management session is terminated, if no
user input is detected. By default, the timeout is set to 15 minutes. For example, to set the
inactivity timeout to 20 minutes,
enter:
|