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
Unanswered

Office365Users.MyProfile ERROR

(0) ShareShare
ReportReport
Posted on by 70

Hi,

I am experiencing error on some users when displaying their Office365 name. On start of the app I set a variable Set(varCurrentUser,Office365Users.MyProfile()) and then I am displaying welcome message and name with the formula: Concatenate("Welcome, ", varCurrentUser.DisplayName) so for some users this error is displayed. Can you help with the issue?  

MarinaPA_0-1610095446360.png

Thank you 

 

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @MarinaPA ,

    Try

    Set(varCurrentUser,User().FullName)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • MarinaPA Profile Picture
    70 on at

    Hi Warren, thank you, I have used this but had to use Office365 connector instead for other reasons so I need another suggestion.

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @MarinaPA ,

    I am wondering why you have to use that, but I had no other suggestion as your code is valid

    varUser.DisplayName.jpg

    The only article I could find was this thread, which was not solved.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MarinaPA ,

     

    Maybe you could try Office365Users.MyProfileV2() first, and not that it would be displayName instead.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard