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 Automate / UPN from people picker
Power Automate
Answered

UPN from people picker

(0) ShareShare
ReportReport
Posted on by 834

Hi all,

I heard it should be possible but cant figure out how....

 

how to get the user principal name from a piple picker (other then using 365 connector and first searching for display name or similar)... what i heard is something to do with a token...(?)

Categories:
  • sudharsan1985 Profile Picture
    1,325 on at
    Are you referring to the UPN value from the People Picker field in SharePoint List?
  • Sifu Profile Picture
    834 on at
  • Verified answer
    sudharsan1985 Profile Picture
    1,325 on at

    Hi @Sifu 

    I have used some sample fields named 'Single User' (Person field with single selection) and 'Multiple User' (Person field with multiple selections). Try to follow the below steps to retrieve the UPN values. UPN value is same as the Claims value without the membership information. If you see the below screenshot, the values returned from the people picker field from Get Item action doesn't actually contain the UPN values.

    sudharsan1985_0-1601205879769.png

    To split the Claims value, use the compose action like the screenshot below

     

    Single selection field

     

    image.png

     

     

     

     

     

     

    Multi Selection field

    Select the value of the claims from the multi-selection field to loop through and then use the compose action inside the Apply to each action and append the value to the array variable which should be declared before the Apply to each action.

    image.png

     

     

     

     

     

     

     

     

    To test the above UPN value, add an action named 'Get user profile (V2)' and pass the UPN value retrieved above and check the result.

     

     

  • Sifu Profile Picture
    834 on at

    thanks i ll try to check this more this week and get back to you once i know if it works

  • Sifu Profile Picture
    834 on at

    @sudharsan1985 i think this could work but getting the upn out of the claim will be more complicated then just split it... 

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 330

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 123

Last 30 days Overall leaderboard