web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating a name field ...
Power Apps
Unanswered

Creating a name field that defaults to the logged in user

(0) ShareShare
ReportReport
Posted on by

Hi all,

Still a novice here.  I have an app that populates a Sharepoint list which includes a column for a user.  This column should default to the logged in user.  For the app I tried to use the Default field tried to use something like:

Office365Users.MyProfileV2(User().Email)

 

Wasn't sure if Email is correct or if it should be FullName.  Either way, I can't get it to default to the logged in user name (or ID?).  Any suggestions?

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    @nitto619 make sure you add the Office 365 Users connector into your app then you can use Office365Users.MyProfile().Mail which will get the email of the current logged in user. To get their firstname and surname you would use Office365Users.MyProfile().GivenName&" "& Office365Users.MyProfile().Surname as in the image below

     

    screenshot190123.png

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

  • nitto619 Profile Picture
    on at

    Hi Rob,

     

    I do have Office365Users connected to the app.  The issue sounds like it could be a type/format issue on how to get it to work with Sharepoint List "Person or Group" type. I do get this error:

    nitto619_0-1674162814372.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard