Forum Discussion

magji's avatar
magji
Helper I
4 years ago

USERPRINCIPANAME() returning the same for all users.

We are trying to implement RLS to a dashboard which source is SQL Analysis Services.

When using USERPRINCIPALNAME() on desktop I get my UPN, but when I publish the report to Online Services it returns an UPN which is the same for every user viewing it. which looks like Server's username.

 

How can I get the user's UPN also when I publish the report online? In Power BI Report server there was a way to Impersonate the user viewing the report, but I am not able to find it in Online Services.

2 Replies