modify-user
Modifies an existing user. An option that is not specified leaves the current value of the user unchanged.
Syntax:
shell
sfiler-admin [options] modify-user [command options]| Command options | Required/Optional | Description |
|---|---|---|
| -d | Optional | The ID of the domain of the user to modify. Default: 1 |
| -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 new domain when performing a domain switch. |
| -e | Optional | 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). |
| -n | Required | Username (ex: jdoe) |
| -ne | Optional | True or False. If true, the user will not be able to modify his own profile. |
| -pk | Optional | Path to public key file. This field is optional. |
| -pw | Optional | New password for the user. |
| -pwc | Optional | True or False. Whether the user must change their password at next logon. |
| -rename | Optional | The new name(login id) of the user |
| -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. |
| -uccp | Optional | True or False. If true, the user will not be able to change his own password. |
| -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. |
| -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. |
Example:
shell
sfiler-admin.sh -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ modify-user -n "my-user" -e "my-user@example.com" -dc "my-community" -ed "2027-01-01"shell
sfiler-admin.exe -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ modify-user -n "my-user" -e "my-user@example.com" -dc "my-community" -ed "2027-01-01"⚠ Important considerations
Renaming a user in an external domain
Renaming a user in a domain other than the internal domain can have unintended consequences. The name of the user is used as a key to match accounts in the external authentication sources. If the new name does not match the name of the account in the external system, when adoption runs, the renamed account will be deactivated and a new user will be created that matches the account name that was renamed. The new account will not have access to communities or files that the renamed account had.
There are scenarios where renaming an external user does make sense:
- When the account in the external system has been renamed.
- When switching users from one authentication domain to another authentication domain, in that case users should be renamed to match the target authentication domain.
