I was wondering what the best approach would be to implement RLS for this kind of data. I'm simply exploring options here, so if the answer is it's not possible, then that is that.
A little description of the data
- It doesn't have any column that represents an AD group, it only has a unique guididentifier
- At any given time, new guid can appear in the table
Now the issue is, user A which is apart of some group B with GroupID is querying the data. I want to apply RLS where group B is only allowed to see data for specific GUID (which, according to 2 can change). Is there any way of doing this? Like having a external table hold the Group-GUID pairs and use that for joining / filtering the query?
Or am I stuck because I would need to include the GroupID as a column in the query and since my data already doesn't include that column, then there is no way for me to add it post-ingestion?