top of page

PowerApps - defaulting a user field to the currently logged on user

Sometimes, you want to be able to create a PowerApps form which has User Fields which default to the currently logged on user.


You can do this by adding the code below:


If(Text('SCR Basic Details Form'.Mode)="1",{
DisplayName:User().FullName,
Claims:"i:0#.f|membership|" & Lower(User().Email),
Department:"",
Email:User().Email,
JobTitle:"",
Picture:""
},Parent.Default)

.... to the DefaultSelectedItems property of the User Control on your Form, e.g.,



Comments


Otagem Logo Wider.png
Microsoft 365 Logo.png
SharePoint.png
Teams.png
PowerApps.png
PowerAutomate.png
Power BI 2.png

© Otagem Consulting Limited 2014 - 2025

bottom of page