Complete the code to share a Power BI report with a user by specifying their email.
PowerBIService.shareReport(reportId, [1])You need to provide the user's email to share the report with them.
Complete the code to assign 'Read' access permission when sharing a dashboard.
PowerBIService.shareDashboard(dashboardId, userEmail, [1])The 'Read' permission allows the user to view the dashboard without editing rights.
Fix the error in the code to revoke access from a user by specifying the correct method.
PowerBIService.[1]Access(reportId, userEmail)The correct method to revoke access is 'revokeAccess'.
Fill both blanks to set workspace access level and add a user to the workspace.
workspace.setAccessLevel(userEmail, [1]) workspace.[2]User(userEmail)
Set the access level to 'Member' and use 'addUser' to add the user to the workspace.
Fill all three blanks to create a role with specific permissions and assign it to a user.
role = new Role([1]: 'Data Analyst', [2]: ['Read', 'Export'], [3]: userEmail)
The role object requires 'name', 'permissions', and 'assignTo' fields to define and assign the role.