Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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))

  • jojos_iq Profile Picture
    90 on at
    Re: How to split the claims field from a People Picker Field in PowerApps to get the UPN Address

    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 🙂

  • SudeepGhatakNZ Profile Picture
    14,297 Most Valuable Professional on at
    Re: How to split the claims field from a People Picker Field in PowerApps to get the UPN Address

    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
    Re: How to split the claims field from a People Picker Field in PowerApps to get the UPN Address

    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!

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,297 Most Valuable Professional on at
    Re: How to split the claims field from a People Picker Field in PowerApps to get the UPN Address

    SudeepGhatakNZ_0-1664508977462.png

     

  • SudeepGhatakNZ Profile Picture
    14,297 Most Valuable Professional on at
    Re: How to split the claims field from a People Picker Field in PowerApps to get the UPN Address

    Why don't you try the Office365Users connection?

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

     

     

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,603 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard