web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Why is this implmented...
Power Apps
Answered

Why is this implmented the way it is? User().Email

(1) ShareShare
ReportReport
Posted on by 13

Related documentation: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-user

My question here is why is User().Email implemented as User.().UPN? This makes it difficult when attempting to compare user details.  Such as in the case of looking for items created by a specific user. 

For Example, in the case of a SharePoint list item, specifically 'Created By'.Email, this does not match the User().Email.  In some cases, including any Guest user account, the UPN is NOT the email address of the user.  Thus, making it much more difficult to do this type of comparison when the provided information is incorrect.  I believe there is a valid case for moving the existing functionality of User().Email to User().UPN and having User().Email instead return the actual user email as defined in their Entra/Azure AD profile which may contain multiple email addresses for a given user.

Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hi,

     

    Its not that its not the UPN, its that you can have multiple emails and in some cases other platforms don't use the UPN. Its actually a known but weird issue.

     

    I would suggest going to the Feature request area and put that there :-).

     

    You should find a bunch of other people doing it too at this point. Required some crazy work arounds in work I just did recently for customers.

     

    P.I.T.B.
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • Verified answer
    cdwhite Profile Picture
    1,069 Most Valuable Professional on at

    Hi @Ed_M ,

    I've experienced all sorts of weird and wonderful errors/annoyances with the User function over the last 6-7 yrs, hence I avoid it completely now and use the Office 365 Users connector for ALL user based matching, patching and everything else. I recently blogged about it as it's an important topic that I think slips under the radar. Maybe the approach mentioned could be of help?

  • Ed_M Profile Picture
    13 on at

    Thank you @cdwhite, that is a good alternative as a work-around.  Though it really does feel like this functionality dropped off the radar.  Hopefully it'll be fixed or deprecated sooner than later.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard