0
0
Tableaubi_tool~10 mins

User permissions and roles in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to assign a Viewer role to a user in Tableau.

Tableau
user.setRole('[1]')
Drag options to blanks, or click blank then click option'
AEditor
BViewer
CAdmin
DPublisher
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Admin or Editor roles which allow editing.
Confusing Publisher with Viewer role.
2fill in blank
medium

Complete the code to check if a user has the Admin role.

Tableau
if user.role == '[1]':
Drag options to blanks, or click blank then click option'
AEditor
BPublisher
CViewer
DAdmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using Editor or Publisher instead of Admin.
Confusing Viewer with Admin role.
3fill in blank
hard

Fix the error in the code to assign multiple roles to a user.

Tableau
user.setRole('[1]')
Drag options to blanks, or click blank then click option'
AEditor
BAdmin, Editor
CPublisher
DAdmin
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to assign multiple roles as a list.
Using invalid role names.
4fill in blank
hard

Fill both blanks to check if a user has permission to publish content.

Tableau
if user.role == '[1]' or user.role == '[2]':
    can_publish = True
Drag options to blanks, or click blank then click option'
APublisher
BViewer
CEditor
DAdmin
Attempts:
3 left
💡 Hint
Common Mistakes
Including Viewer role which cannot publish.
Confusing Editor with Publisher role.
5fill in blank
hard

Fill all three blanks to assign a role and check if the user can edit content.

Tableau
user.setRole('[1]')
if user.role == '[2]' or user.role == '[3]':
    can_edit = True
Drag options to blanks, or click blank then click option'
AViewer
BEditor
CPublisher
DAdmin
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning Viewer role which cannot edit.
Missing Admin role in the permission check.