Forum Discussion
RLS Only Works For Some Users
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
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.
- Lee_D20224 years agoRegular Visitor
That sheds a little more light on the situation. The problem users are returning my name and, as I'm in the see all group, they can then see all.
Why would this happen for some users and not all of them? Could it be how their profile is set up?