Password reset on user_save() issue
You probably want this:

$existingUser1 = user_load($uid1);
$existingUser1-&gt;field_group_id[LANGUAGE_NONE][0]['value'] = $g_id;
user_save($existingUser1);


You just need to call user_save() on the user object to save the values after you have changed any fields.