The method Update modifies parameters of the user. Returns true on success. In case of an error the method will return false, and the LAST_ERROR property will contain the error description.
Parameters
Parameter
Description
id
User ID.
fields
An array of values in the format array("field"=>"value" [, ...]). The field names may include all the CUser class fields as well as GROUP_ID - an array of user group ID's to which the user belongs.