def edituser(self, user_id, **kwargs):
        data = {}

        if kwargs:
            data.update(kwargs)

        request = requests.put("{0}/{1}".format(self.users_url, user_id),
                               headers=self.headers, data=data, timeout=self.timeout,
                               verify=self.verify_ssl, auth=self.auth)
        if request.status_code == 200:
            return request.json()
        else:
            return False
Edits an user data.
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.edituser