Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Kevdie11
Frequent Visitor

Row Level Security

I created Roles within Power Bi Desktop. When I test them within Desktop they work as expected.

 

After I publish the report, I set up security as one should. When I "Test as Role", the RLS works as expected, but when I test as a user (the person is allocated to the role I mentioned above), then they can see all data. This seemed like it should work as simply as that, why is it not working? Also, when I ask the user to test, he advised that he can still see all data when he logs in.

 

Kevdie11_0-1655221025778.png

I also added them as a "Viewer" to the Workspace.

 

Thank You

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @Kevdie11 ,

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team _ kalyj

v-yanjiang-msft
Community Support
Community Support

Hi @Kevdie11 ,

1. When select View as, if you want to enter the user name to test, you should checked the role name at the same time.

vkalyjmsft_1-1655794951226.png

vkalyjmsft_2-1655794976452.png

If you only checked the Other user, you will see all the data.

vkalyjmsft_3-1655795015617.png

vkalyjmsft_4-1655795040910.png

2. If the user can see all the data in Service, check if you have a group in the workspace member/contributor/admin, and the RLS user is in the group. In this way, RLS will be invalid and he will see all the data.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

edhans
Super User
Super User

I would have to see more to understand what exactly isn't working, but I would remove the user from the workspace entirely and only add them as a viewer to the App for the workspace. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

So here is my data model.

 

Kevdie11_0-1655275291084.png

All we basically did was create a role for every Salesperson, and then we want to link every Salesperson's Email address to the respective roles on Power Bi Online. I.e. They should only be able to see Sales data pertaining to them.

Let me give you an example:

 

I create a role for "Online" Salesperson

Kevdie11_7-1655276558218.png

 

 

Here you can see the user's access to the workspace

Kevdie11_2-1655275939255.png

Here you will see I have added Richard to the role

Kevdie11_3-1655275983632.png

Here I am testing the role (Now viewing as: Online) You'll notice that I can only see data for Online.

 

Kevdie11_4-1655276135454.png

 

But, when I change it to view as "Richard Stevens" (who is allocated to the Online Role ONLY), then I can see all data.

Kevdie11_5-1655276244247.pngKevdie11_6-1655276391964.png

 

Thanks in advance

 

 

Get rid of both the Sales Person master and Customer Grouping master. Merge those into Customer master. Sales Person and Groupings are just additional attributes.

I am not sure what Customer Created is, but don't relate that to Sales Fact table. Never relate fact tables together.

Finally, get rid of the Bi-Di relationship between Customer Master and Sales Fact Table. Should be 1 to many.

 

You have model ambiguity. For example, Customer Master directly filters Customer Created. But It can also filter Sales Fact Table which in turn filters Customer Created. so there are two ways for data to get filtered and you cannot control what path the model uses. 

Then try RLS. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors