Forum Discussion
Balhemkan
Helper III
4 years agoRLS 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 [email protected] bcd...
amitchandak
Super User
4 years agoBalhemkan , In the role, create the following condition
if([Usershortname] in {"abc","acd"}, [Email] = userprincipalname(), true())
Balhemkan
Helper III
4 years agoHi Amit,
Is there any other way instead of manually entering users.
Because we have too many users.
- azakir4 years ago
Resolver I
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.
- Balhemkan4 years ago
Helper III
Hi Amit, I have AD groups in organization but how it will help for RLS. Could you please explain little brief
- amitchandak4 years ago
Super User
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