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 set Current use...
Power Apps
Unanswered

How to set Current user in People Picker field

(0) ShareShare
ReportReport
Posted on by 46

Hi,

 

I have one people picker field in my list. Now I would like to set current user as default selected in people picker control. I'm able to set current user as a default user selected in people picker field but I have to click on people picker control before save button click, other wise it is not saving the data.

 

PFA property set in people picker control:

 

Default user.png

 

 

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi SPDevOne,

     

    After you set the current user as a Default user in People picker field, by clicking on the People picker control before saving the data, could you save the People information to the list?

     

    Per my certain knowledge, when an Edit form control is in New mode, however, the Item property is ignored. The form doesn't show an existing record; instead, the values in each field match the default values of the data source with which you configured the form.


    So though you have set the current user as a Default user in People picker field, the value in this field might not match the default values of the data source. So if you don’t click on the People picker control before saving the data, the data cannot be saved to data source, and you are asked to enter a required value to the required field.

     

    For People picker field, on Edit screen, you could search a user by entering user name, then select one from drop down items.

     

    About Edit form and Display Form, please check this documentation for more details:
    https://powerapps.microsoft.com/en-us/tutorials/control-form-detail/


    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Select ComboBox (With People & Group type) => Advanced => DefaultSelectedItems = Office365Users.MyProfile()

     

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    @SPDevOne,

     

    If you are still having issues setting the current users as the default value for your person field I think I can help. If you have already been making changes to the data card or person field then I will need you to remove field and add it back. If you go into the data pane of the form the person that is selected is probably gray out because of the changes. You can remove that one and then select it again from the list of fields. This will give us the standard people picker combo box.

     

    Add this formula to the Default property of the Data Card that is the parent of the combo box field. You will need to change the "EditForm" name to the name of your Edit Form and you will also need to change the "PersonGroup" in "ThisItem." to the name of the People Picker Field.

     

    If(EditForm.Mode = New,{
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:Concatenate("i:0#.f|membership|",User().Email),
     DisplayName:User().FullName,
     Email:User().Email
     }, 
    ThisItem.PersonGroup)

    This formula should set the Combo Box's value to the current if the form is new. If the form is Edit then it will display the value that is coming from SharePoint. You should be able to save a new form with the current user's name without having to select the field before saving.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard