How to Display SharePoint User Photos Instead of Hyperlinks in Power Automate
Question details
The user needs to render actual user profile photos from SharePoint in an employee directory instead of displaying them as clickable URL hyperlinks.

- Product
- Power Automate / SharePoint
- Device & OS
- not provided
- Scenario
- Building an automated employee directory using Power Automate to fetch user photos from SharePoint via the userphoto.aspx URL.
- Observed behavior
- The retrieved userphoto.aspx URL renders as a plain text hyperlink in the destination application rather than displaying the actual image.
Ensure that you have the appropriate permissions to access user profiles in your SharePoint environment and verify that your destination application supports image rendering controls.
Use an Image Control and Verify Direct Link Access
Replace standard hyperlink or text fields with image-capable controls to ensure URLs are properly rendered as pictures instead of text.
When fetching images via a userphoto.aspx URL, the destination app may default to a text or hyperlink control if not explicitly instructed to render an image. You must use a dedicated image control to display the photo properly.
In your destination application (e.g., Power Apps or HTML email builder), ensure the data field intended for the photo is mapped to an 'Image' control rather than a 'Text Input' or 'Hyperlink' control.
Upload a sample image (e.g., a PNG or JPG file) to a regular SharePoint Document Library. Copy its direct link and paste it into your control to isolate whether the issue stems from the control itself or the specific userphoto.aspx URL format.
Check that the destination application and end-users have the required SharePoint permissions to read the userphoto.aspx endpoint without being prompted for additional login credentials.
Boost Your Productivity with WPS Office
While specialized automation workflows require tools like Power Automate, WPS Office is an excellent, free alternative for your everyday document, spreadsheet, and presentation needs. Experience a lightweight, highly compatible office suite designed for maximum efficiency.

Frequently Asked Questions
Why does my SharePoint photo URL show up as plain text in Power Apps?
This typically happens if the data card or control is set to a Text Input or Label instead of an Image control. To fix this, insert an Image control and set its 'Image' property to the SharePoint URL.
Can I use the userphoto.aspx link directly in an HTML email body?
Yes, but you must enclose the URL within an HTML image tag (e.g., <img src='your-url' />). Make sure the email recipients have active authentication to your SharePoint environment, otherwise the image will appear broken.
How do I get a high-resolution user photo from SharePoint?
You can append the parameter 'size=L' to the end of the userphoto.aspx URL to retrieve a larger, high-resolution version of the user's profile picture.




