Skip to content

add-user ​

Adds an internal user.

Syntax:

shell
sfiler-admin [options] add-user [command options]
Command optionsRequired/OptionalDescription
-dcOptionalName 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)
-domainOptionalThe ID of the domain of the user. Use the list-domains command to get the IDs of the domains. Default: the internal domain
-eRequiredEmail address
-edOptionalUser 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.
-fOptionalFull name (ex: Jane Doe)
-lOptionalUser language (en, fr, es, de, it)
-mcsOptionalThe mail consolidation strategy (possible values are : SMART, DAILY, IMMEDIATE, NONE). Default : SMART
-nRequiredUsername (ex: jdoe)
-neOptionalTrue or False. If true, the user will not be able to modify his own profile. Default is false
-pkOptionalPath to public key file. This field is optional.
-pwOptionalInitial password for the new user. The user will need to change it on his first login (if not a service account).
-pwcOptionalTrue or False. Whether the user must change their password at next logon. Default: True
-rnOptionalReference number, this field is informational and not used by S-Filer Portal.
-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
-uccpOptionalTrue or False. If true, the user will not be able to change his own password. Default is false.
-uqOptionalA 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
-urOptionalA numerical value representing the user role. STANDARD = 0, SYSTEM_ADMINISTRATOR = 1, ROLE_SYSTEM_AUTOMATE = 2, ROLE_ANONYMOUS = 3, ROLE_GUEST = 4, ROLE_RESTRICTED = 5
-upOptionalTrue 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 True
shell
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