Introduction
In this article, I am going to explain how to set a current user as the default value of the person or group field in PowerApps. The goal of this article is to provide a complete idea of how to set current user or user-related properties to SharePoint person or group column in PowerApps.
Overview
- Fetch the current user properties on screen load
- Set the properties to the SharePoint list columns on button click.
Procedure
Create a SharePoint list with a people/group column
I have created a SampleList here with the following 3 columns.
- Name
- Branch
- CreatedBy

Here, our goal is to set the current user as the default value to the CreatedBy column and the remaining Name and Branch columns will be filled by using input forms.
Create a PowerApp for the above list
Click on "Exit Classic Experience".

Then, you will be able to see an option called PowerApps for this list. Click on "Create an app" as shown below.

Name it for the app and click on "Create" as below.

I have named it Myapp. The moment you clicked on ‘Create’, it will take you to PowerApps Studio where you will design and develop the actual app.
What to do in PowerApps Studio
By default, you will get 3 screens called BrowseScreen1, DetailedScreen1, and EditScreen1respectiveluy, with all functionalities, as shown below.

Go to Preview (or press F5), then click on + sign to create a new record to SharePoint list. It will navigate to editscreen1.

Expand the editscreen1, then select EditForm1, and click on fields on the right side under Properties, as shown below.

Then, unselect the rest of the columns except Name and Branch to give manual inputs.









Katrina ThompsonPosted Jun 15, 2020, 7:13 PM
How would you do this if it were an app for the Common Data Service and not Sharepoint?
Piero NegriPosted Nov 8, 2018, 4:04 AM
It's telling me that the Author column is generated by the server, so it looks like I can indeed save to a people column bu not to the Author/Editor column
Hadshana KamalanathanPosted Sep 4, 2018, 7:49 PM
Thanks for sharing...