Forum Discussion

freddoune's avatar
freddoune
Frequent Visitor
1 year ago
Solved

Toggle Row Level Securiy

Dear all, I have an application with the following data model :    I have 4 RLS Tables : one for the hierarchy, one for the location, one for the country and one for the headcount. Basicall...
  • lbendlin's avatar
    1 year ago

    VAR _Selected_Role = VALUES(Param_Security_Role[Role]) -- User role selection
    RETURN
    _Selected_Role = "Hierarchy" && 'DIM_USER_RLS_HIERARCHY'[USER_EMAIL] = USERPRINCIPALNAME()