Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 | |
bcd | |
efg |
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.
@Balhemkan , In the role, create the following condition
if([Usershortname] in {"abc","acd"}, [Email] = userprincipalname(), true())
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
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
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 32 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 70 | |
| 38 | |
| 27 | |
| 24 |