You can update a user's profile with the updateUserProfile method.
Permission to run the request: Account Owner, Administrator, Organization Administrator.
|credentials (required)||credentials||Read the description of the Credentials object.|
|userId (required)||string||ID of the user whose profile you want to update.|
|fields (required)||array||Array of objects with the following properties: name, value.|
|organizationId (optional)||int||Organization the user will be moved to.|
|groups (optional)||string||Array of IDs of the groups the user will be added to.|
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.|