8000 Adding all of the new site roles (#291) · rshide/server-client-python@3fe62c9 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3fe62c9

Browse files
author
Russell Hay
authored
Adding all of the new site roles (tableau#291)
* Adding all of the new site roles
1 parent 608aa76 commit 3fe62c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tableauserverclient/models/user_item.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ class Roles:
1616
ViewerWithPublish = 'ViewerWithPublish'
1717
Guest = 'Guest'
1818

19+
Creator = 'Creator'
20+
Explorer = 'Explorer'
21+
ExplorerCanPublish = 'ExplorerCanPublish'
22+
ReadOnly = 'ReadOnly'
23+
SiteAdministratorCreator = 'SiteAdministratorCreator'
24+
SiteAdministratorExplorer = 'SiteAdministratorExplorer'
25+
UnlicensedWithPublish = 'UnlicensedWithPublish'
26+
1927
class Auth:
2028
SAML = 'SAML'
2129
ServerDefault = 'ServerDefault'
@@ -147,3 +155,6 @@ def _parse_element(user_xml, ns):
147155
domain_name = domain_elem.get('name', None)
148156

149157
return id, name, site_role, last_login, external_auth_user_id, fullname, email, auth_setting, domain_name
158+
159+
def __repr__(self):
160+
return "<User {} name={} role={}>".format(self.id, self.name, self.site_role)

0 commit comments

Comments
 (0)
0