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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Balhemkan
Helper III
Helper III

RLS help

Hello Team,

 

I need your assistance on below issue.

 

I have master table which linked to fact table .we have values like below

 

Usershortname

Email ID

abc

abc@xyz.com

bcd

bcd@xyz.com

efg

efg@xyz.com

 

 

we are using usershortname in slicer.

 

My scenario is

If abc user login he need to see only abc in slicer

if bcd user login he need to see only bcd in slicer.

if any other country user login then they need to see all the users.

 

How can i create RLS for below issue could you please help me.

5 REPLIES 5
amitchandak
Super User
Super User

@Balhemkan , In the role, create the following condition

 

if([Usershortname] in {"abc","acd"}, [Email] = userprincipalname(), true()) 

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

Hi Amit,

Is there any other way instead of manually entering users. 

Because we have too many users. 

 

@Balhemkan , [Email] = userprincipalname()

is way, but you have the condition to ignore, that is why hard coding

 

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

Hi @Balhemkan if you have active directory step up for your organization, you should be able to use that for this exercise instead of manually entering users. 

Hi Amit, I have AD groups in organization but how it will help for RLS. Could you please explain little brief 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.