Skip to main content

How to Add an Avatar Control in Power Apps

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

The modern Avatar control shows a person as a round picture, or as their initials when there's no picture. Out of the box it shows the signed-in user, which makes it an easy way to personalise a home screen. It also ships with an Available presence badge you probably don't want. Here's how to add it and set it up properly.

Prerequisites​

Step 1: Insert an Avatar​

Select the container, open Insert, expand Display and select Avatar:

The Insert pane with the Display category open, listing Text, Information button, Icon, Avatar, Badge, Card, Progress bar, Spinner, Link, Timer and HTML text, with Avatar outlined in red

Rename it; the example uses avtMeHS.

Step 2: Know Its Defaults​

A new Avatar already points at the signed-in user:

PropertyDefaultMeaning
ImageUser().ImageThe user's Microsoft 365 picture
NameUser().FullNameUsed for the initials and for screen readers
BadgePresenceBadge.AvailableA green "available" dot
ShapeAvatarShape.CircularRound
Width × Height64 × 64

The formula bar with the Image property of avtMeHS set to User().Image, the preview strip showing [Image] with Data type image, and a grey person icon in the avatar on the canvas

How to Get the Current User in Power Apps with the User Function explains User().

Step 3: Remove the Presence Badge​

The app doesn't know whether the person is available, so the green dot would be misleading. Remove it:

avtMeHS → Badge
Blank()

The Avatar documentation says to use a blank value when no badge should appear.

Step 4: Size It​

The example uses 72 × 72:

PropertyValue
Width72
Height72

Step 5: Initials Instead of a Grey Icon​

Notice the grey person icon in Step 2: the example's admin account has no photo, yet the Avatar didn't fall back to initials. That's because User().Image returns a default picture. Fixed: Power Apps Avatar Shows a Grey Person Icon Instead of Initials shows the one-line fix.

Step 6: Label It for Screen Readers​

Studio's App checker flags a new Avatar with Missing accessible label. Describe it:

avtMeHS → AccessibleLabel
"Profile picture of " & User().FullName

See Fixed: Missing Accessible Label in the Power Apps App Checker.

Common Mistakes​

MistakeWhat happensDo this instead
Keeping the default badgeEveryone shows as AvailableSet Badge to Blank()
Assuming initials appear when there's no photoA grey icon insteadCheck for a photo first, as in the fix post
Leaving AccessibleLabel emptyAn App checker errorDescribe whose picture it is

Troubleshooting​

SymptomLikely causeFix
A grey person iconNo photo, and User().Image returns a default imageUse the fix in Step 5
The badge won't go awayBadge still set to a valueBlank()
Wrong person shownImage or Name points at someone elseCheck both formulas

FAQ​

Can the Avatar show someone other than me?​

Yes. Set Name to that person's name, and Image to their photo or Blank() for initials. Part 7 of the series shows each of a manager's direct reports this way, with Name ThisItem.displayName.

Can it be square?​

Yes: AvatarShape.Square in Shape.

Can it be clicked?​

Yes. Give it an OnSelect formula, and it behaves like a button for keyboards and screen readers.

Conclusion​

Insert Avatar, remove the Available badge with Blank(), size it, make sure people without a photo get initials, and give it an AccessibleLabel. It's a small touch that makes the app feel personal.

Additional Resources​

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.