Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Email different in app compared to SharePoint people picker

Like (1) ShareShare
ReportReport
Posted on 23 Apr 2025 13:46:36 by 742
When I checked the app the people picker variable shows the email with capitalized letters, however, when I check the people picker in SharePoint the email is shown in all common letters.
 
The Office365Users.MyProfileV2() also returns the email in all common letters. 
 
Therefore when making the comparison Office365Users.MyProfileV2() = varUser.Email it return false.
 
Example:
Office365Users.MyProfileV2().Email returns the email john.doe@email.com
 
varUser.Email returns the email John.Doe@email.com
 
I checked the active directory and the email is set to all common letters.
Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,137 Super User 2025 Season 1 on 23 Apr 2025 at 23:31:47
    Email different in app compared to SharePoint people picker
     
    Yeah as in my first post, you need to use Lower() to convert them to be the same.
     
    Its a standard issue.
  • BCBuizer Profile Picture
    22,080 Super User 2025 Season 1 on 23 Apr 2025 at 20:03:13
    Email different in app compared to SharePoint people picker
     
    As per @Michael E. Gernaey,s suggestion, you may use the Lower() function to convert all characters to lower case:
     
    Lower(Office365Users.MyProfileV2()) = Lower(varUser.Email)
     
     
     
    If this reply helped you in any way, please give it a Like đź’ś and in case it resolved your issue, please mark it as the Verified Answer âś….
  • rpersad Profile Picture
    742 on 23 Apr 2025 at 18:16:32
    Email different in app compared to SharePoint people picker
     
    I updated my post to include more information.
     
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,137 Super User 2025 Season 1 on 23 Apr 2025 at 17:38:44
    Email different in app compared to SharePoint people picker
     
    It really helps if you share pictures of what you are referring too as you are saying words, but not sharing the details that you see.
     
    So just to be clear
     
    MyProfileV2() I assuming you mean .mail, is the person's actual email
    User().Email is actually their UPN NOT their email
     
    If you want them to match for sure, then use the 
    Lower(User().Email)
     
    on both sides. Yes you may get a delegation warning, which we can get around, but since its just that person check its not a big deal.
     
     
     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 106

#3
stampcoin Profile Picture

stampcoin 80

Overall leaderboard
Loading started