Forum Discussion

majdkaid22's avatar
majdkaid22
Helper V
9 years ago
Solved

Row level security exempt

Hi guys,   I've started applying RLS for Sales users, so data in all tables drill down to see only their figures/statistics.    My filter is simple. [user_name]="value" which I have applied for a...
  • majdkaid22's avatar
    majdkaid22
    9 years ago

    Anonymous ibarrau 

     

    So once RLS mode in place, a role has to be created to each user/department. 

     

    In my case I had definded roles to only Sales users (users[user_name]= "Sales Name")

    As a workaround, I just created a conditional column (users[SeniorManagement] which has a value of "SM" to all sales users, and then created a role SM (users[SeniorManagement]= "SM") and then I added all SM users so they can see all the data 

     

     

    Thanks for your respond guys.

     

    Cheers,

    Majd