Forum Discussion
Lee_D2022
4 years agoRegular Visitor
RLS Only Works For Some Users
We have a problem with our RLS whereby it is working for some users and not others, for these it is displaying all records unfiltered. All users have the same permission level for the Workspace a...
Lee_D2022
4 years agoRegular Visitor
Hi
Thanks for the reply (and apolgies for not getting back sooner)
The users have the same permissions level in the WS (viewer) and are in the same RLS security group.
There are 2 different datasets in the WS and the problem persists for the same users across dataset
- otravers4 years agoCommunity Champion
Do you have an RLS role that can view everything? What's the DAX expression that defines it?
- Lee_D20224 years agoRegular Visitor
It passes userprinciplename to the users name (code below)
There is a role that sees everything. This doesn't have any filters applied.
DAX
Username =var atpos = iferror(search("@",USERPRINCIPALNAME()),0)returnif(atpos > 0,SUBSTITUTE(left(USERPRINCIPALNAME(),atpos-1),"."," "),"Error")- otravers4 years agoCommunity Champion
I suggest you create a table in a new report page with each user's UPN and then a column with that DAX expression. Publish it in the service to see the UPN resolve to emails.