add-user
Adds an internal user.
Syntax:
shell
sfiler-admin [options] add-user [command options]| Command options | Required/Optional | Description |
|---|---|---|
| -dc | Optional | Name of the default community for this user. *Important: This user must also be assigned to this community for this configuration to take effect (see command: assign-user-to-community) |
| -domain | Optional | The ID of the domain of the user. Use the list-domains command to get the IDs of the domains. Default: the internal domain |
| -e | Required | Email address |
| -ed | Optional | User account expiration date. Use this format: YYYY-MM-DD (ex: 2014-12-31). Cannot be set on a user adopted from an external domain, whose expiration date comes from the adoption source. |
| -f | Optional | Full name (ex: Jane Doe) |
| -l | Optional | User language (en, fr, es, de, it) |
| -mcs | Optional | The mail consolidation strategy (possible values are : SMART, DAILY, IMMEDIATE, NONE). Default : SMART |
| -n | Required | Username (ex: jdoe) |
| -ne | Optional | True or False. If true, the user will not be able to modify his own profile. Default is false |
| -pk | Optional | Path to public key file. This field is optional. |
| -pw | Optional | Initial password for the new user. The user will need to change it on his first login (if not a service account). |
| -pwc | Optional | True or False. Whether the user must change their password at next logon. Default: True |
| -rn | Optional | Reference number, this field is informational and not used by S-Filer Portal. |
| -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 |
| -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 megabytes allowed for the user's quota. This quota is used for the user himself as well as all the shared communities he manages (if the share functionality is activated). Use a value greater than 0, or -1 for unlimited. Default: unlimited |
| -ur | Optional | A numerical value representing the user role. STANDARD = 0, SYSTEM_ADMINISTRATOR = 1, ROLE_SYSTEM_AUTOMATE = 2, ROLE_ANONYMOUS = 3, ROLE_GUEST = 4, ROLE_RESTRICTED = 5 |
| -up | Optional | True or False. If true, upload to Inbox is permitted. Default: True |
Example:
shell
sfiler-admin.sh -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ add-user -n "my-user" -pw "passw0rd" -e "my-user@example.com" -dc "my-community" -ed "2027-01-01" -ne True -uccp Trueshell
sfiler-admin.exe -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ add-user -n "my-user" -pw "passw0rd" -e "my-user@example.com" -dc "my-community" -ed "2027-01-01" -ne True -uccp True