public function updateUser($username, $password, $name=false, $email=false, $groups=false)
    {
        $endpoint = '/users/'.$username; 
        return $this->doRequest('PUT', $endpoint, compact('username', 'password','name','email', 'groups'));
    }
public function updateUser($username, $password, $name=false, $email=false, $groups=false)
    {
        $endpoint = '/users/'.$username; 
        return $this->doRequest('PUT', $endpoint, compact('username', 'password','name','email', 'groups'));
    }
public function updateUser ( $ username , $ password , $ name = false , $ email = false , $ groups = false ) { $ endpoint = '/users/' . $ username ; return $ this -> doRequest ( 'PUT' , $ endpoint , compact ( 'username' , 'password' , 'name' , 'email' , 'groups' ) ) ; }
Updates an OpenFire user

@param   string          $username   Username
@param   string|false    $password   Password (Optional)
@param   string|false    $name       Name (Optional)
@param   string|false    $email      Email (Optional)
@param   string[]|false  $groups     Groups (Optional)
@return  json|false                 Json with data or error, or False when something went fully wrong
Updates an OpenFire user