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 / PowerApps People picke...
Power Apps
Answered

PowerApps People picker - set by default Current User

(0) ShareShare
ReportReport
Posted on by 37

I have a people picker field in the SharePoint list and I am displaying that in PowerApps in New Form. Users should be able to enter user name and submit the form. It is working as expected.

 

Also, I would like this people picker to show current user name by default when new form shows up and if user doesn't change this in the people picker, it should just save current user name in the people field in SharePoint. I know that I can display current user by User().DisplayName but I am not sure where to put that. I have tried adding it in the Default property but that is not working. It is giving an error property expects record value but this produces a text value. 

 

Madiko_0-1694218552569.png

 

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Madiko ,

     

    To set the current user as the selected item in a people picker inside a form, try using 

    Coalesce(
     Parent.Default,
     {
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: "i:0#.f|membership|" & User().Email,
     Department: "",
     DisplayName: User().FullName,
     Email: User().Email,
     JobTitle: "",
     Picture: ""
     }
    )

     

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Madiko - on the DefaultSelectedItems property of the DataCardValue, use:

     

    If(
     'Your Form'.Mode = FormMode.New,
     {
     DisplayName: User().FullName,
     Claims: "i:0#.f|membership|" & Lower(User().Email)
     },
     Parent.Default
    )
    

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • Madiko Profile Picture
    37 on at

    thank you so much, it works.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Sorry @BCBuizer didn't realise you had already responded

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 Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard