Forum Discussion
Role Based Security stopping certain users from accessing drill through reports
Hi DebbieE
1. Make the relationship between "Toplevel" and "details" tables "single direction".
2.create RLS formula in the "User" table as my screenshot shown.
3. the "user" column in my test is the account which users use to log in the power bi instead of users' names.
for example, i user the following to sign in power bi.
4. if you publish the pbix report to an App workplace where members have edit permission, then RLS doesn't work.
please only give view permission to your users.
Best Regards
Maggie
1. Make the relationship between "Toplevel" and "details" tables "single direction".
Ahh this was cross filter direction Both. Changed to Single
2.create RLS formula in the "User" table as my screenshot shown.
Already done
3. the "user" column in my test is the account which users use to log in the power bi instead of users' names.
for example, i user the following to sign in power bi.
Same as ours. Understood
4. if you publish the pbix report to an App workplace where members have edit permission, then RLS doesn't work.
please only give view permission to your users.
Im the only one with Access in my App workspace. I added the other person as a contributer if thats what you mean? These havent been added into the App yet Im just testing in the workspace. Do you mean add them to the App workspace OR just add them to the actual app?
Now I am seeing different behaviour. I can see everything all the time which now makes sense because Im the owner. I didnt realise that before
My other users password now cant see anything at the top level 'The visual Contains restricted data'. So this hasnt worked because its restricting the top level. I have just checked again and my relationships are identical to your screenshot
Test 1: Add other user to App (Not app workspace)
I can see everything. Other user - The visuals contain restricted data
Test 2: Take other user out of App and Add to App workspacec as Contributor
I can see everything. Other user - The visuals contain restricted data
Test 3: Chage App workspacce to Member
I can see everything. Other user - The visuals contain restricted data
Test 4: Chage App workspacce to Admin
I can see everything. Other user - The visuals contain restricted data
I think I have figured out the issue. I have been testing in service without first adding them as members. Although now I just cant see any data for each member rather that it being restricted
I still down understand how row level security works with
1. Adding people to the app workspace (People you work with and work on the project)
2. The App (People who just view the reports)