Forum Discussion
Oussmissa
4 years agoNew Member
Dynamic RLS based on two users tables
Hello everybody, I'm trying to implement RLS by Country and Brand at the same time based on two security tables. Users who are in the security table by brand and other users who are in the 2nd secu...
Oussmissa
4 years agoNew Member
Thank you for your response Greg_Deckler.
I have tried this but by doing this, the RLS is only applied for the users that exist in the 2 tables at the same time.
for a user who exists in table 1 and not table 2 or vice versa, he sees nothing...
- Greg_Deckler4 years agoCommunity Champion
Oussmissa Oh yeah, you are right about that, let me think... What if you had a single users table related to your two user tables within just the user names and you applied the RLS there? I'm thinking it might end up with the same thing but maybe not?