Canvas Apps Expressions UI

User – How to fetch current user’s details in Power Apps

User information
User information

Introduction

Showing the photo of the user is a nice way to add a personal touch! For example, in the Outlook app (on Android at least), you can see your photo at the top left corner. One of the best ways to get ideas to make Power Apps feel more like native apps is to look at those native apps!

Tip - User function

To show the current logged in user's details, use the User() function. It provides access to the following details:

  1. FullName
  2. Email
  3. Image

Here is a quick illustration:

User() function
User() function

It is important to note that the information returned will match the "Account" information that is displayed in the Power Apps players and studio but may or may not match the information in Office 365. (Source: Microsoft Docs)

It is always a good idea to fetch either the entire record using the User() function or specific details like email using User().Email in a variable during the app. This helps to get rid of delegation issues when you want to use the email or name within other functions.

Stay tuned for the remaining 5 tips!

Recent articles

  1. A-Z: 26 tips! Learn how to improve your Power Apps!
  2. Add Picture vs Camera Control – Who is the winner?
  3. Background images for Power Apps screens – the right way!
  4. Combo box or Dropdown? - Who is the winner?
  5. Delegation in Power Apps – How to identify and test!
  6. Edit vs Display – Which is the better form?
  7. Formulas – How to learn the 170+ Power Apps formulas?
  8. Galleries vs Data Tables – How to pick between the two in Power Apps?
  9. Hyperlinks – How to launch web pages & apps in Power Apps!
  10. Icons – How to increase performance!
  11. Jump start – How to speed up Power Apps dev with components!
  12. Keyboard – How to control the keyboard type on mobile
  13. LastSubmit – How to fetch the last submitted record in Power Apps
  14. Media controls in Power Apps – How to improve user experience!
  15. New screens – How to speed up Power Apps dev using templates!
  16. OnStart – How to optimize app loading experience!
  17. Phone camera – How to switch cameras on Power Apps mobile!
  18. Quotes – Should you use single or double in Power Apps?
  19. Reset – How to reset a Power Apps gallery?
  20. SaveData – How to persist your Power Apps sessions!
  21. Tables – How to create tables in Power Apps

6 thoughts on “User – How to fetch current user’s details in Power Apps”

Leave a Reply