You can update a user's profile with the updateUserProfile method.
Permissions to run the request: Account Owner, Administrators, Department Administrators.
Department Administrators can update profiles of users belonging only to the department they manage and its daughter departments.
|credentials (required)||credentials||Read the description of the Credentials object.|
|userId (required)||string||ID of the user whose profile you want to update.|
|email (optional)||string||Email of the new user.|
|password (optional)||string||Password of the new user.|
|login (required)||string||Login of the new user.|
|departmentId (required)||string||Department ID the user will be added to.|
The user might be assigned to one of the roles:
|manageableDepartmentIds (required if the user's role is department_administrator or publisher)||string|
An array with the IDs of the departments the user will manage if their role is Department Administrator or Publisher.
|groups (optional)||string||Array of IDs of the groups the user will be added to.|
All required fields of the user profile must be included in the request (excluding the Country field type).
After the request has been completed, the system returns an object with the following properties:
|success||bool||True if the user's profile has been updated.|
|Unknown user||The user with the specified ID was not found.|
|Permission denied||The user has no permissions to update info of the specified user.|
|Wrong Parameters||One of the specified parameters is incorrect.|
|Invalid value <field_value>. Field <field_name> must be unique.||An error occurs if the Login and Email 'user_fields' have been changed. They should be unique.|