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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Why does user().Email ...
Power Apps
Unanswered

Why does user().Email return email in a different format from a list of people?

(0) ShareShare
ReportReport
Posted on by 54

User.Email returns my network login in the format xy1234@company.org and a Sharepoint List of people has it in the format first.last@company.org.

 

This makes it impossible to check if the current user is part of an  'Admin' list 100%.

 

I'm switching to see if comparing Displayas and Fullname will work.

 

Thanks,

Ralph

 

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    on at

    Hi @ralphtrickey,

     

    The information returned by User() function is for the current PowerApps user. It will match the "Account" information that is displayed in the PowerApps players and studio, which can be found outside of any authored apps. This may not match the current user's information in Office 365 or other services including SharePoint user profiles. For your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-user

     

    Regards,

    Mona

  • ralphtrickey Profile Picture
    54 on at

    Sorry, that wasn't really a question.

     

    I understand that there are technical reasons for the emails differing, but to the developer, this is a very clear bug, no matter how you may try to explain why it's happening unless you can suggest a configuration change that would make them align.

     

    If Sharepoint and Powerapps were from different companies, I would accept it and move on. That isn't the case here.

     

     

  • Community Power Platform Member Profile Picture
    on at

    This issue is not solved.  user().email and [metadata type people].email does not return the same value.

    In PowerAps it is then impossible to check of filter based on this information.  And except the full name there is no other alternative (no unique ID).

  • AngryBatVoice Profile Picture
    203 on at

    Here's a recent video discussing this issue:

    PowerApps User() function & Office 365 Users (2019)

  • Community Power Platform Member Profile Picture
    on at

    Thank you for this valuable information !

    In fact my application was working... execpt for some users...  Those have a blank in their family name that is one time replaced by a . (in email) and another time ignored (login).  So matching was not working for them.

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Its not a bug.  It happens when your AD admins decide to have an email address that doesn't match the user's User Principal Name (UPN). By default AD makes these the same, but some organizations decide they want to differentiate between them.  That is a decision made by your IT staff, not a flaw in the product.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard