Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

add parameter role to user.update #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions egnyte/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def delete(self):
base.Resource.delete(self)

def update(self, email=None, familyName=None, givenName=None, active=None, sendInvite=None, authType=None,
userType=None, idpUserId=None, userPrincipalName=None):
role=None, userType=None, idpUserId=None, userPrincipalName=None):
"""
Modify this user account.
Optional parameters (no change if value is None):
Expand All @@ -283,7 +283,7 @@ def update(self, email=None, familyName=None, givenName=None, active=None, sendI
url = self._client.get_url(self._url_template, id=self.id)
name = base.filter_none_values(dict(familyName=familyName, givenName=givenName)) or None
data = base.filter_none_values(dict(email=email, active=active, name=name, sendInvite=sendInvite,
authType=authType, userType=userType, idpUserId=idpUserId,
authType=authType, role=role, userType=userType, idpUserId=idpUserId,
userPrincipalName=userPrincipalName))
json = exc.default.check_json_response(self._client.PATCH(url, data))
self._update_attributes(json)
Expand Down