↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Read this page for FileRun 2026.3.0

API: Modify FileRun user accounts

Target URL /api.php/Core/!admin/users/edit
Required scope admin
HTTP Method POST
Output format JSON

Request Parameters Reference

Besides the parameters described for adding user accounts, this API method uses also the following:

Parameter Type Required Description
UID integer Yes The user ID
generate_password boolean No Set this to generate a new password. The plain text generated password will be included in the response, as data.password.
notify boolean No Set to 1 to have FileRun e-mail the new credentials to the user, when the username or the password changed. After a change of the username alone, the e-mail says that the password is the one the user already uses. When the mail server refuses the e-mail, the account is still saved, and the answer is successful, with "The e-mail with the sign-in details could not be sent!" among its messages.
data[userIsActive] boolean No Set to 1 to activate the account, 0 to deactivate it. Left out, the account keeps its state (since 2026.3.0).
data[two_step_reset] boolean No Set to 1 to remove the second authentication factor of the account (since 2026.3.0). When the removal fails, nothing of the request is saved, and the request fails.
data[language] string No The language the e-mail messages to the account are written in, empty for the default language. Left out, the account keeps its language (since 2026.4.0).
data[require_email_otp] boolean No Set to 1 to have every sign-in of the account end with a second step, as described for adding accounts. Left out, it is turned off (since 2026.4.0).

Notes

  • The endpoint rebuilds the whole permissions record from the request. A permission left out of perms is stored as 0, so send every permission the account is meant to keep. An older client which sends perms[changes] instead of the permissions of FileRun 2026.4.0 sets rename_move, delete_files, delete_folders and delete_permanently, and leaves edit_files, collections, starring and write_metadata off.
  • Some permissions are stored as 0 when a permission they depend on is 0, as listed on Add FileRun user accounts.
  • You cannot edit your own account, nor the System account. The account of a shared drive cannot be edited either ("A shared drive can only be changed from the "Shared drives" section of the control panel.").
  • Changing the password revokes the sessions, the OAuth2 tokens and the app passwords of the account.
  • The last name is taken as data[last_name], as for adding accounts, or as data[name2].
  • No expiration date is stored for the superuser and for the visitor account. A data[expiration_date] sent for them is ignored, and a date they hold is cleared.
  • An e-mail address that another account already has is refused, unless the account itself already has it, so accounts that already share an address can still be edited. A guest account cannot lose its address, and an account without an address cannot get the Guest role.
  • When an independent administrator edits an account whose home folder the superuser placed outside the home folder of the administrator, a perms[homefolder] that is not empty is refused with "Only the superuser can change the home folder of this user!". An empty one keeps the home folder.
  • An account that has an owner cannot become an administrator, through perms[admin_type] or through a role. An account with an owner which already is an administrator keeps its type, and only the superuser can edit it.
  • Changing the role to the Guest role turns the account into a guest account, and changing it from the Guest role to another one turns it into a regular account. The licence limits and the administrator's own limits apply.
  • A request which changes nothing is refused with "No changes were made!".