put
https://{server}/api/v2.1/admin/users//
Update one or more attributes of a user and return the updated user information. Only the parameters sent are changed.
- Boolean values must be sent as strings (
true/false). - Deactivating a user (
is_active=false) also deletes the user's API tokens and personal library API tokens. - When
is_activeis sent together withkeep_sharing=false, all shares from and to the user are removed. - When
is_activeis sent and email is configured, an activation email is sent to the user if the account is active. reference_idanddepartmentare not supported (v13).
Permission: System admin (is_staff) whose admin role grants can_manage_user or can_update_user. Admin roles with a restricted permission set (e.g. audit_admin, system_admin) receive 403.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Invalid parameter (e.g. is_staff invalid., role must be in [...], name too long, login ID already exists, Contact email invalid., invalid quota or rate limit, unknown institution) or the licensed number of users is exceeded.
403Permission denied: the account is not a system admin, or its admin role lacks the required admin permission.
404User not found.
500Internal server error.