Forum Discussion
RLS - Users See No Data Due to Email Alias vs. USERPRINCIPALNAME Mismatch (Workspace App)
- 4 months ago
Thank you all for the thoughtful responses After further investigation, I want to share an update that may help others facing similar symptoms.
In our implementation, we do not rely on a security mapping table for RLS evaluation. Instead, our models resolve identity directly from the user's Active Directory, which means the email alias vs. UPN mismatch was not the root cause in our case.
The actual issue turned out to be a misconfigured security group that had been inadvertently added to the Workspace App audience with elevated privileges. This group's permission scope was conflicting with and overriding the expected RLS enforcement for a subset of users effectively causing them to fall outside the intended access boundary and return no data.
Once the security group was identified and removed, RLS resolved correctly for all affected users.
Thank you again.
I have run into similar issues with the UPN data in the past. What I would recommend doing is going into Entra ID and see what the UPN pattern is and then use that pattern to be applied for the users when using RLS because as mentioned before it will always go back and use the user principal name and not the display name or email address which sometimes can be different.