Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

User ID in Power BI Service

Hi All,

I want to show the user ID (NOT email) of the logged in person in one of my reports. 

I tried using USERNAME() function. The function gives me User ID in Power BI desktop but when I publish the report in Service, this function gives me email ID of the logged in user.

Any way to show User ID of the person instead of email ID in Power BI Service?

 

Your help is greatly appreciated.

Thanks!

1 REPLY 1
AlexisOlson
Super User
Super User

USERNAME is the local user name. In the Power BI Service, this is the same as USERPRINCIPALNAME (email) since that's what's being used "locally" in the cloud.

 

The service has no information on what a user's local name is outside of the service, so you'll need to include a table in your model that relates the two if you want those local names to be available for use when you publish.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors