Skip to content

Commit

Permalink
Adding all of the new site roles (#291)
Browse files Browse the repository at this point in the history
* Adding all of the new site roles
  • Loading branch information
Russell Hay authored May 8, 2018
1 parent 608aa76 commit 3fe62c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tableauserverclient/models/user_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ class Roles:
ViewerWithPublish = 'ViewerWithPublish'
Guest = 'Guest'

Creator = 'Creator'
Explorer = 'Explorer'
ExplorerCanPublish = 'ExplorerCanPublish'
ReadOnly = 'ReadOnly'
SiteAdministratorCreator = 'SiteAdministratorCreator'
SiteAdministratorExplorer = 'SiteAdministratorExplorer'
UnlicensedWithPublish = 'UnlicensedWithPublish'

class Auth:
SAML = 'SAML'
ServerDefault = 'ServerDefault'
Expand Down Expand Up @@ -147,3 +155,6 @@ def _parse_element(user_xml, ns):
domain_name = domain_elem.get('name', None)

return id, name, site_role, last_login, external_auth_user_id, fullname, email, auth_setting, domain_name

def __repr__(self):
return "<User {} name={} role={}>".format(self.id, self.name, self.site_role)

0 comments on commit 3fe62c9

Please sign in to comment.