Forum Discussion
Anonymous
6 years agoNot applicable
USERPRINCIPALNAME() and USERNAME() returns same result
Hi All, I am facing issue with USERPRINCIPALNAMEand USERNAME both returning same result login name in my destop file. when i publish to app.powerbi.com am seeing result as login email for both!!! ...
Anonymous
6 years agoNot applicable
Hi Anonymous yes thats the expected behavior, but in desktop iam getting DOMAIN\User for both the function. Not sure why this is happening in desktop, am using latest version nov 2019.
Anonymous
6 years agoNot applicable
Anonymous
Is your account assigned to a domain? Please first check with your UPN with "whoami" in cmd.
One of my collegue also experienced the same issue, where both functions return his computer name(Desktop_xxxx\name) instead of account name. . This is because he was removed from the domain.
Paul