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 / Prepopulate Person/Gro...
Power Apps
Answered

Prepopulate Person/Group field with User

(0) ShareShare
ReportReport
Posted on by 29

Hi, I have a form with a 'Your Name' combo box that is a Person/Group field where they can look up their name. I want to automatically populate this with the user's name, but still give them the ability to change it (since some might fill out the form for others). 

Categories:
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Kellison ,
    Try using below formula in DefaultSelectedItems property of combobox - 
    {Claims:"i:0#.f|membership|" & Lower(User().Email), Department:"", DisplayName: Office365Users.UserProfile(User().Email).DisplayName, Email:User().Email, JobTitle:"", Picture:""}

    Add Office 365 Users connector in Datasources section of your app.

     

     




  • Kellison Profile Picture
    29 on at

    Thank you!!! That worked beautifully!

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Kellison 

    1. DefaultSelectedItems property of ComboBox

    {
     DisplayName: User().FullName,
     Email: User().Email
    }
    

     

    2. For a simple example where they can change it to someone else from your organization,

    use this formula for Items property of same ComboBox

    Office365Users.SearchUserV2({isSearchTermRequired:false}).value

     

    3. Toggle this off to allow only one selection in the combobox if needed

    poweractivate_0-1682610676280.png

     

    Check if it helps @Kellison 

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Kellison ,
    Also add a check to the formula so that it will only add current logged in user when the field is blank or form is in new mode - 
    If(IsBlank(Parent.Default), {Claims:"i:0#.f|membership|" & Lower(User().Email), Department:"", DisplayName: Office365Users.UserProfile(User().Email).DisplayName, Email:User().Email, JobTitle:"", Picture:""}, Parent.Default)

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 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard