web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get user photo (V2) in...
Power Automate
Unanswered

Get user photo (V2) insert into Word Template ?

(1) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1

Hello,

 

I have built a flow that uses the 'Populate a Microsoft Word Template' action which grabs data from a SharePoint list - that bit is working. 

 

I have a requirement to use the Picture Content Control and populate this with a users Microsoft 365 user profile photo.

 

I've tried using the 'Get user photo (V2)' action however I am seeing this error when running the flow:

 

{
 "status": 400,
 "message": "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG.\r\nclientRequestId: 05a3c427-c267-4bae-889f-9becc409eb1c",
 "error": {
 "message": "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG."
 },
 "source": "wordonlinebusiness-uks.azconn-uks-002.p.azurewebsites.net"
}

 

sudosaurus_0-1706645540625.png

Is there a particular format that needs to be used to get the User photo into the Word Picture Content Control?

 

Thanks.

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @sudosaurus,

    The Populate a Microsoft Word template action expects the base64 data of the image.
    The required data format is as follows:

    vqiaqimsft_0-1706663245302.png

    Or:vqiaqimsft_1-1706663255055.png

     

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-qiaqi-msft could you specify how I structure that in with the rest of my flow actions? (as per the original screenshots)

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @v-qiaqi-msft could you specify how I structure that in with the rest of my flow actions? (as per the original screenshots)

  • CU03080521-0 Profile Picture
    on at
    @sudosaurus
    Did you ever figure this out?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard