Showing results for 
Search instead for 
Did you mean: 
New Member

Including a user photo in an Adaptive Card


As a proof of concept, I'm trying to build a flow that will post an adaptive card to a Teams channel with my profile mugshot in the message body.

The only components I can find to return my profile image, return the raw content, rather than a there a way to get this working?





Thanks Fraser! Was stuck in this for a long while now. Your answer really helped. This idea worked, I just had to change



"url": "data&#58image/png;base64,@{outputs('Compose')}",






"url": "data:image/jpeg;base64,@{outputs('Compose')}",



and it worked fine for me. I wanted to use user profile image in adaptive card(to be displayed on Outlook app) and was able to achieve that.


This worked perfectly for me, thank you!

New Member

None of the prior options worked for me. I think due to 302 redirect errors in the 'Send a HTTP Request to Sharepoint' action. The response didn't return any redirected location so I was stuck.


"<user ID>/profilepicturev2?displayname=<display name>&size=HR96x96"


What worked for me was to construct the above URL used by Teams for user photos. This includes a user ID (e.g. '3666e81d-07ba-628e-b633-51db53a564c3') that I noticed was included in the output from 'List group members'. Filter this output by 'User Principal Name' = email address of the user (case-sensitive so I used toLower()) to find the relevant member.



in the adaptive card, the user picture is posted via:


"type": "Image",
"style": "Person",
"size": "Small",
"url": "{items('Apply_to_each')?['id']}/profilepicturev2?displayname=@{items('Apply_to_each')?['displayName']}&size=HR96x96"
Apply to each loop should only have one iteration due to the filter. You could avoid this by writing the filter outputs to variables.
When checking, these 96x96 images are only ~9 kB. Thankfully below the 28 kB limit.
Edit: also, you may need to edit 'apac' to suit your region if not in Asia Pacific.


Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,348)