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

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,396 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,396 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,396 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard