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