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 / User function not show...
Power Apps
Answered

User function not showing user data in production

(0) ShareShare
ReportReport
Posted on by 9

Hey there,

 

I've searched around and couldn't find anything related to it.

 

As you can see on the image below, the user data is being loaded on the Canvas App.

cmatt7_0-1716925730225.png

Now this is on the deployed app, nothing is shown.

cmatt7_1-1716925817441.png

 

What could be the issue?

 

Thanks in advance. 

 

Categories:
I have the same question (0)
  • Verified answer
    cmatt7 Profile Picture
    9 on at

    All right, easy to fix it.

     

    On the App OnStart set a global variable to the user display name, photo or anything else you want to show.

    Use Office 365 Users connection on the app, to grab any data related to the user just use the connection functions to retrieve it.

     

    Example: Office365Users.MyProfile().DisplayName

     

    Let's say you save this on the "userName" global variable, just use the variable whenever you need it and there you have 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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard