You can update a user's profile with the method updateUserProfile.
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, which profile you want to update.|
|fields (required)||array||An array of objects with the following properties: name, value.|
|organizationId (optional)||int||An organization to which a user will be moved.|
|groups (optional)||string||An array of group IDs, to which a user will be added.|
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||User with the specified ID was not found.|
|Permission denied||You have no permissions to update info of the specified user.|
|WrongParameters||One of the specified parameters is incorrect.|
|Invalid value <field_value>. Field <field_name> must be unique.||Error appears if the 'user_fields' login and email have been changed. They should be unique.|