Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Dynamic RLS based on two columns

I'm wondering if it's possible to create a user access table like this. So I have a fact sheet (employee data), I need to give HRBPs access to data based on their roles. Most HRBPs are responsible fo...
  • Rigensis's avatar
    Rigensis
    5 years ago

    Anonymous You could create two RLS roles
    RLS which would be used for all people with single entity access

    and 'No RLS' role like this:

    When you publish the report, put all users responsible for the whole sales sector under this 'No RLS' role, and they will be able to see all the data, as effectively for them the RLS is not applied as the restriction of 1=1 is always true, thus will be seeing all the rows.

     

    Hope this helps