question

joakimhogberg avatar image
0 Votes"
joakimhogberg asked joakimhogberg answered

Group photo not reflected in Teams or SharePoint

Hi,

I am trying to set the Group Photo of a M365 Group using the Graph API:
profilephoto-update

When I update the photo using this endpoint, I can see that the new photo is present on the group using the GET-operation in Graph API /groups/{groupId}/photo for the group I just updated. However, the photo is not visible in;

  • Teams application/Teams Web interface

  • SharePoint site

  • M365 Admin Center

I expected this API call to update the Photo and show it in the applications listed above. Am I missing something obvious?

I am posting my request with:
PUT https://graph.microsoft.com/v1.0/groups/{groupId}/photo/$value
Content-Type: "image/jpeg"
Body: Binary image data

I have tried doing it with Postman, C#, JavaScript SDK... I've also tried with /beta/-endpoint without any luck. The photo is there in Graph API, but not visible to any user anywhere...

Any ideas?




microsoft-graph-groups
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Deva-MSFT avatar image
0 Votes"
Deva-MSFT answered

It's worth to check about the known issue listed in the documentation when you to try access the group photos using application permission


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

joakimhogberg avatar image
0 Votes"
joakimhogberg answered

I have tried both using Application permissions and Delegated permissions but the issue remains the same. Any other suggestions?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.