0
0
Power BIbi_tool~10 mins

Sharing and access control in Power BI - Interactive Code Practice

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

Complete the code to share a Power BI report with a user by specifying their email.

Power BI
PowerBIService.shareReport(reportId, [1])
Drag options to blanks, or click blank then click option'
AreportName
BuserEmail
CworkspaceId
DaccessLevel
Attempts:
3 left
💡 Hint
Common Mistakes
Using the report name instead of the user's email.
Using workspace ID which is unrelated to sharing with a user.
2fill in blank
medium

Complete the code to assign 'Read' access permission when sharing a dashboard.

Power BI
PowerBIService.shareDashboard(dashboardId, userEmail, [1])
Drag options to blanks, or click blank then click option'
AWrite
BDelete
CAdmin
DRead
Attempts:
3 left
💡 Hint
Common Mistakes
Assigning 'Write' permission which allows editing.
Using 'Admin' which grants full control.
3fill in blank
hard

Fix the error in the code to revoke access from a user by specifying the correct method.

Power BI
PowerBIService.[1]Access(reportId, userEmail)
Drag options to blanks, or click blank then click option'
Ashare
Bremove
Crevoke
Dgrant
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'grant' or 'share' which add permissions instead of removing.
Using 'remove' which is not the correct method name.
4fill in blank
hard

Fill both blanks to set workspace access level and add a user to the workspace.

Power BI
workspace.setAccessLevel(userEmail, [1])
workspace.[2]User(userEmail)
Drag options to blanks, or click blank then click option'
AMember
Badd
CAdmin
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'removeUser' instead of adding.
Setting access level to 'Admin' when 'Member' is required.
5fill in blank
hard

Fill all three blanks to create a role with specific permissions and assign it to a user.

Power BI
role = new Role([1]: 'Data Analyst', [2]: ['Read', 'Export'], [3]: userEmail)
Drag options to blanks, or click blank then click option'
Aname
Bpermissions
CassignTo
Ddescription
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'description' instead of 'name' for the role.
Missing the 'assignTo' field to link the role to a user.