Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Row Level Security with Multiple levels (Complicated)

Hi,   I am looking to implement RLS for multiple levels. I have 2 tables as below. 1) Groups 2) Tasks Groups table will have , Group name and Member email. And tasks will have below ...
  • AlexisOlson's avatar
    4 years ago

    Is this the filtering expression you're after?

    Tasks[SubmittedBy] = USERPRINCIPALNAME ()
        || Tasks[IsRestricted] = "No"
        || Tasks[RestrictedAccess]
            IN CALCULATETABLE (
                VALUES ( Groups[GroupName] ),
                Groups[Members] = USERPRINCIPALNAME ()
            )