add-user
Syntax:
shell
sfiler-admin [options] add-user [command options]
Command options | Required/Optional | Description |
---|---|---|
-n | Required | Username (ex: jdoe) |
-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 |
-dc | Optional | Name of the default community for this user *Important: This user must also be assigned to this default community for this configuration to take effect (see command: assign-user-to-community) |
-e | Required | Email address |
-ed | Optional | User account expiration date. Format : yyyy-mm-dd |
-f | Optional | Full name (ex: Jane Doe) |
-https | Optional | True or False. If true, the user will be configured for HTTPS transfers instead of the applet. Default is to use the applet for transfers |
-l | Optional | User language (en, fr, es, etc.) |
-ne | Optional | True or False. If true, the user will not be able to modify his own profile. Default is false |
-no-mail | Optional | True or False. If true, mail notification is DISABLED for this user. Default is false |
-pk | Optional | Path to public key file. |
-pw | Optional | Initial password for the new user. The user will need to change it on his first login (if not a batch user). |
-rn | Optional | Reference number, this field is informational and not used by S-Filer Portal |
-uccp | Optional | True or False. If true, the user will not be able to change his own password. Default is false |
-uq | Optional | A numerical value representing the number of megs allowed for the user's quota. This quota is used for the user himself as well as all the shared community he manages. Note that the share functionality needs to be enabled for this value to be usable |
Example:
shell
sfiler-admin.exe -l sfiler-master -p 012345 -s https://www.sfiler.com/sfiler/server/ add-user -n "my-user" -pw "passw0rd" -e "my-user@okiok.com" -dc "my-community" -ed "2027-01-01" -ne True -uccp True