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 / How to split the claim...
Power Apps
Unanswered

How to split the claims field from a People Picker Field in PowerApps to get the UPN Address

(0) ShareShare
ReportReport
Posted on by 90

Hi all.

I have a gallery that I need to only show the items assigned to the user currently logged into the app. The issue is is that the quite a lot of our user accounts (for reasons) have email aliases that are mismatched to their UPN.

I would like to take the claims field from a people picker item and split the UPN attribute from it, but I do not know the syntax 😞

Could someone help with this please? If additional information is required, please ask away and I would be more than happy to answer.

Guessing it is something like: Split(Second(ThisItem.'Column name', "|")) but I couldn't work it out from the documentation that I could find, and I wasn't too sure how the Power Automate version of it translated to PowerApps (Solved: UPN from people picker - Power Platform Community (microsoft.com))

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Why don't you try the Office365Users connection?

    Connect to Office 365 Users connection from Power Apps - Power Apps | Microsoft Learn

     

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    SudeepGhatakNZ_0-1664508977462.png

     

  • jojos_iq Profile Picture
    90 on at

    It didn't even cross my mind to try that, thank you 🙂 

    What I am trying to achieve with this value is create a filter on the Gallery so the items shown are only those where the current user UPN is equal to the UPN of a column called 'Manager assigned to'. Are you able to help with this please?

    Current formula on the Gallery at the moment:
    Items > Filter('SharePoint List DataSource', Lower(myEmail) = Lower('Manager Assigned To'.Email));

    Where the variable myEmail = Set(myEmail, Office365Users.UserProfile(User().Email).Mail);

    If you need additional info, please let me know!

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Yes, something like that. 

    Isn't what you have working? Is the Variable myEmail  set to the correct/expected value?

  • jojos_iq Profile Picture
    90 on at

    Ahh sorry it now works properly - caching issues with my browser. Using an Incog tab in Chrome has now fixed the issue. 

    Thank you for your help 🙂

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard