Update a User


Summary

Changes a user within your site. Only site administrators can update a user, and all site administrators can update every user account.

Users who are not site administrators cannot change their own user account settings with this API.

Endpoint

PATCH https://mysite.files.com/api/v2/users/{id}

Replace mysite.files.com with your site address.

Path Parameters

ParameterDescription
idThe internal user ID number, not the username.

Request Body Schema

Any values you do not wish to change for the user can be left out of the request.

NameData TypeNotes
usernamestring This should follow standard username conventions - spaces are not allowed, etc.
nicknamestringThe full name for the user.
homeResourcestringA path that the user will be given permission to. Users who will be site administrators should have a homeResource of "/".
The path that is provided here will be used as the user_root for FTP.
This can be specified as a file path (such as "/path/to/folder") or as an ID string (such as "id:1223"); if you are providing an ID string, it must start with "id:".
emailstringMust be a valid email address.
passwordstringThe new password for the user. Passwords cannot be set to common words or passwords which have been published on the dark web.
rolestringSend "admin" if the user should be a site administrator, or "user" otherwise.
Possible values: admin, user.
permissionsobjectAn object containing name/value pairs for each permission.
Any permission that is not passed will be set to false by default.
When creating an admin user, you should set all of the permissions to true.
timeZonestringRequired. Time zone, used for accurate time display within the application.
Must be one of the allowed time zone identifiers.
"UTC" is not a valid option.
expirationdate-timeOptional timestamp when the user should expire.
Format is "YYYY-mm-dd HH:MM:SS".
Must be in the future; you cannot retroactively expire a user account.
lockedbooleanIf true, the user account will be disabled.
onboardingbooleanLegacy setting which is no longer used.

Permissions Object

The permissions object included in the request schema has the following properties

NameData Type
listboolean
downloadboolean
uploadboolean
modifyboolean
deleteboolean
changePasswordboolean
shareboolean
notificationboolean
viewFormDataboolean
deleteFormDataboolean
undeleteboolean

Get Instant Access to Files.com

The button below will take you to our Free Trial signup page. Click on the white "Start My Free Trial" button, then fill out the short form on the next page. Your account will be activated instantly. You can dive in and start yourself or let us help. The choice is yours.

Start My Free Trial

©2024 Files.com. All right reserved

FILES.COM

  • Start My Free Trial
  • Pricing
  • Docs
  • API and SDKs
  • Contact

CONTACT & SUPPORT

support@files.com

(800) 286-8372

Monday–Friday

9am–8pm Eastern