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 / How to upload a Micros...
Power Automate
Answered

How to upload a Microsoft 365 group's photo?

(0) ShareShare
ReportReport
Posted on by 10
I want to replicate the photo from one M365 group to another.
I've been able to get the photo using a graph GET call to https://graph.microsoft.com/v1.0/groups/<id of source group>/photo/$value.
 
However, I did not found a way to upload the image to the target group.
 
According the documentation, I should be able to make a PUT or a PATCH call to https://graph.microsoft.com/v1.0/groups/<id of target group>/photo/$value with the picture content as body.
 
This API is working well from external tools, but not from power automate.
 
Here's what I currently have:
 
body is the output of "Get source group Image".
The create file action is here to check if my picture is valid. Which it is, I can see the image is properly saved to some SharePoint site.
 
 
When running, the "set target group image" fails with this output (HTTP 400):
 
​
{
  "error": {
    "code": "InvalidImage",
    "message": "Exception of type 'Microsoft.Fast.Profile.Core.Exception.ProfileBadRequestException' was thrown.",
    "innerError": {
      "date": "2025-01-14T10:40:11",
      "request-id": "d73494a5-d1b4-4b92-8e22-0359642961ef",
      "client-request-id": "d73494a5-d1b4-4b92-8e22-0359642961ef"
    }
  }
}

​

How to fix my workflow ?
 
I tried to played with intermediate compose action, with binary() and/or base64toBinary()... without success.
 
Thanks
 
 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,504 Most Valuable Professional on at
     
    Have you tried the PUT method instead? Does that also give you the error?
     
    And which specific action are you using? The HTTP with Microsoft Entra ID (preauthorized) action?
     
    I tried to reproduce your issue with the HTTP action, but seems to work fine with the PUT method.
     
    Below was my test setup, if that helps? (I also have OAuth config in both actions, which is not in the screenshot).
     

    Test result

    ​​​​​​​
  • palsecam Profile Picture
    10 on at
    Thanks @expiscornovus.
     
    PUT and PATCH, same behavior.
     
    I use the HTTP with Microsoft Entra ID (preauthorized) action and not the HTTP because of the authentication. Because of the extra requirements to enable OAuth (need to authenticate using certificate on SP endpoints, which must be protected, ...) we ban the HTTP action (we are ISV and we can't ask too much complexity to customers).
     
    I also tried with various "HTTP actions" from others builtin connectors (teams, outlook, office 365, ...) but none is set up to allow /groups endpoint.
  • Verified answer
    Expiscornovus Profile Picture
    33,504 Most Valuable Professional on at
     
    Ok, good to know that requirement.
     
    Have you tried the Send an HTTP request V2 action of the Office 365 Groups connector? That action should work with the /groups endpoint.

    ​​​​​​​


    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • palsecam Profile Picture
    10 on at
    Great @Expiscornovus!
     
    I missed this specific variation of HTTP request action.
     
    Still wondering why the original implementation failed, but at least I solve my issue.
     
    Thanks!

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
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard