object user.updateprofile(object parameters)
This method allows to update the currently logged in user.
(object/array) User properties to be updated.
userid property must not be defined. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the standard user properties, the method accepts the following parameters.
|usrgrps||array||User groups to replace existing user groups.
The user groups must have the
(object) Returns an object containing the ID of the updated user under the
Rename the current user to John Doe.
CUser::update() in frontends/php/include/classes/api/services/CUser.php.