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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Row-Level security: Making certain rows visible

Hello everyone,


this topic is about RLS, and unfortunately I'm not familiar with it yet.

I have a table "Order list" (a long list from Sharepoint) which is connected to PowerBI.
There is a column "E-mail", the e-mail address of the user who triggers the order is saved there.

The requirement is, that the logged in user should only see the rows of his own orders. By the measure

USER = USERPRINCIPALNAME()
the e-mail of the logged in user appears, but how can I make only the data of the orders visible which he triggered?
 
I have created a separate table which contains all the users and their e-mail addresses
and as I explained above, in the main table there is already a column with the e-mail.
Which steps are missing?

I would be so thankful if you could explain it step by step!
 
Best regards
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , based on what I got

 

Create a role and filter

'Order list'[Email] = userprincipalname()

 

 

refer if needed

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

@Anonymous , have you tested the role as view as the role and by passing email id?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

I've just tested it, indeed, it works! Thank you soo much!

 

 

 

Best regards

amitchandak
Super User
Super User

@Anonymous , based on what I got

 

Create a role and filter

'Order list'[Email] = userprincipalname()

 

 

refer if needed

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for your answer, I tried it but nothing changed.. I still can see the orders of my colleagues

@Anonymous , have you tested the role as view as the role and by passing email id?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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