object user.update(object/array users)
This method allows to update existing users.
(object/array) User properties to be updated.
userid property must be defined for each user, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard user properties, the method accepts the following parameters.
Can be empty string if user belongs to or is moved only to groups that have LDAP access.
|usrgrps||array||User groups to replace existing user groups.
The user groups must have the
|user_medias||array||User media to replace existing media.|
(object) Returns an object containing the IDs of the updated users under the
Rename a user to John Doe.
CUser::update() in ui/include/classes/api/services/CUser.php.