Forum Discussion
Link Sharing with Row Level Security
I noticed that when RLS is implemented and a link is sent to someone via subscription, RLS does not work on the first view, and the user can see everything. Upon refreshing or clicking the link again the users see what they are supposed to.
Similar behavior takes place if a user is given direct access and are provided access via link copied out of the browser of someone with higher access levels.
I am still testing other link sharing approaches, but was curious if there is a recommended link sharing method for reports with RLS.
Thanks
Mike
Just checking back in with the solution on this.
It turns out that we believe the users who reported the issue were actually seeing what they were supposed to see and just didn't realize it.
The reason the issue persisted in our internal testing is because we were removing people from the workspace just before assigning RLS and testing. We met with our Microsoft reps on this and it turns out that you need to wait at least 1 hour after removing someone from a workspace before assigning RLS. This has to do with a permissions job that runs hourly.
Thanks everyone for your help.
8 Replies
- porterm3Frequent Visitor
It still isn't clear to me what is going on. I ran a test yesterday with 8 users, 6 of which the RLS worked on and 2 it did not until the page was refreshed. These were users who have never looked at the report before and had never been granted access to the workspace. The link was provided by giving the users Direct Access and then creating a link for "People with Specfic Access" and emailing that link.
Why would RLS fail under these circumstances in 2 of 8? Isn't that a really big problem?
- GilbertQSuper User
Yeah that might help for sure.
- porterm3Frequent Visitor
Just checking back in with the solution on this.
It turns out that we believe the users who reported the issue were actually seeing what they were supposed to see and just didn't realize it.
The reason the issue persisted in our internal testing is because we were removing people from the workspace just before assigning RLS and testing. We met with our Microsoft reps on this and it turns out that you need to wait at least 1 hour after removing someone from a workspace before assigning RLS. This has to do with a permissions job that runs hourly.
Thanks everyone for your help.