Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +nSdFPel8xejW3Gl+fYxT/
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 726
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
    41,072 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,027 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
    726 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
    41,072 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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started