add-admin-user
Add an administrator user.
Syntax:
shell
sfiler-cli [options] add-admin-user [command options]
Command options | Required / Optional | Description |
---|---|---|
-u | Required | The administrator's username. |
-e | Required | The administrator's e-mail address. |
-ap | Required | Administrator password. |
-apc | Required | Administrator password confirmation. |
-pwc | Optional | True or False. Whether the admin user needs to change his password at next logon. The default is True. |
-sa | Optional | True or False. If True, the user is a service account whose password never expires and multi-factor authentication (MFA) is always disabled. Default is False") |
Example:
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" add-admin-user -u new-admin-user -e new-admin@okiok.com -ap "MySecretPassword" -apc "MySecretPassword"
.\sfiler-config-cli.bat -l sfiler-user -p Passw0rd -cf "C:\Users\sroy\git-9\sfiler-portal\sfiler-server\conf\sfiler.conf" add-admin-user -u new-admin-user -e new-admin@okiok.com -ap "MySecretPassword" -apc "MySecretPassword"
Execution of this command will add a new administrator with the username new-admin-user. The new administrator will be able to authenticate using the username and password supplied in the command. They will be required to change their password the first time they log on.