Forum Discussion

Maria_Maria's avatar
Maria_Maria
Helper II
4 years ago
Solved

RLS upside-down

Hi! I need a way to allow only one user out of many to see all the data, and all other users to see the restricted data.  I can't do a regular group as there are many users and they are added every...
  • d_gosbell's avatar
    4 years ago

    Assuming you have an existing RLS role that is working the way you want and all you need to do is to give one of your users access to all the data. Then all you would need to do is to create a second role in your model with no restrictions or filters then add the user to this role. The permissions in roles are unioned together so this should grant unlimited access even if the user is also in the RLS role.