Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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!!!
Any one faced this issue and have any solution for it
Thanks in advance!!
@Anonymous
In Power BI Desktop, username() returns a user in the format of DOMAIN\User and userprincipalname() returns a user in the format of username@microsoft.com
In Power BI Service, username() and userprincipalname() both return the userprincipalname, which is the email address format.
Best,
Paul
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly, Kudos is nice too.
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
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 39 | |
| 34 | |
| 23 |