Skip to content

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 optionsRequired/OptionalDescription
-dOptionalThe ID of the domain of the user to modify. Default: 1
-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 new domain when performing a domain switch.
-eOptionalEmail 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).
-nRequiredUsername (ex: jdoe)
-neOptionalTrue or False. If true, the user will not be able to modify his own profile.
-pkOptionalPath to public key file. This field is optional.
-pwOptionalNew password for the user.
-pwcOptionalTrue or False. Whether the user must change their password at next logon.
-renameOptionalThe new name(login id) of the user
-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.
-uccpOptionalTrue or False. If true, the user will not be able to change his own password.
-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.
-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.

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:

  1. When the account in the external system has been renamed.
  2. When switching users from one authentication domain to another authentication domain, in that case users should be renamed to match the target authentication domain.