Forum Discussion
nandukrishnavs
6 years agoCommunity Champion
USERPRINCIPALNAME() returning wrong email id in Power BI service
Hi All I have created a simple measure and showing this measure in a card visual. emailid = USERPRINCIPALNAME() I tried to change the user using Test as role from RLS window. ...
JensEggerath
4 years agoRegular Visitor
Hi v-xicai ,
I have exactly this problem in one of my workspaces. It only happens if someone is or had been member, admin or contributor on the given workspace, which would exempt them from standard RLS. Then, even if I remove the user from the workspace completely (only leaving report+dataset+RLS viewer rights), my own UPN is shown instead of theirs when using "view as role".
In my case, when the users log in themselves, RLS just seems to work as expected. It's only a problem when simulating access for someone else. I guess it either caches or queries historic contributor/member/admin roles when determining the access rights.
Best regards,
Jens