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 / Office365Users.MyProfi...
Power Apps
Answered

Office365Users.MyProfileV2().givenName returns the name of another user

(0) ShareShare
ReportReport
Posted on by 48

Hi 🙂

 

I have a Sharepoint form that I'm customizing with PowerApps.

This form retrieves the name of the user logged in from the Active Directory through the code

 

Office365Users.MyProfileV2().givenName

 

However, an anomaly occurs whereby when other users fill out the form, their email is registered correctly while the giveName is replaced with the name of another person (every time it's the name of the same guy).

 

This issue is perhaps more of a systemic type, but I'll try to ask you hoping to find someone with experience in this regard

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey!

    Why dont you use User().FullName ?

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

    My blog!

  • FedeCandotto Profile Picture
    48 on at

    Thank you for your reply! 🙂

     

    For greater clarity: The form I am customizing is used by a school to help its students when they have to enroll in courses.

     

    I was specifically asked to create two separate fields (one for the first name and one for the last name).

    These two fields are then shown in the form in View mode so when the students will open them, they will already find their name and surname filled in, and simply have to choose which course to enroll in using a combobox.

     

    So, I don't think User.FullName can be a solution. Maybe associate with First() and Split()

  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Try this:

     

    First(Split(User().FullName, " ")) -> first name

     

    Last(Split(User().FullName, " ")) -> last name

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

    My blog!

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard