Skip to content

add-admin-user

Add an administrator user.

Syntax:

shell
sfiler-cli [options] add-admin-user [command options]
Command optionsRequired / OptionalDescription
-uRequiredThe administrator's username.
-eRequiredThe administrator's e-mail address.
-apRequiredAdministrator password.
-apcRequiredAdministrator password confirmation.
-pwcOptionalTrue or False. Whether the admin user needs to change his password at next logon. The default is True.
-saOptionalTrue 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.