Unable to fetch group photo in Entra ID using MS Graph API

Vasyl Artemiuk | Keepit 10 Reputation points
2024-07-24T15:10:07.03+00:00

The GET endpoints for https://graph.microsoft.com/v1.0/users/<ID>/photo/ and https://graph.microsoft.com/v1.0/groups/<ID>/photo/$value stopped working correctly sometime since Thursday 18.07.2024. We have reproduced this on two tenants: keepit723.onmicrosoft.com (standard tenant) and M365x25668676.onmicrosoft.com (CDX tenant). We are a backup company, and we can also see these errors in our clients' tenants when we try to fetch the group photos.

After 18.07.2024, we can see the following response with a 404 HTTP status code:

{
    "error": {
        "code": "ErrorNotEnabledStorage",
        "message": "Accessing service failed.",
        "innerError": {
            "date": "2024-07-22T10:55:30",
            "request-id": "5dbcecc6-4a6f-46d4-8b0f-9cefdfb3008d",
            "client-request-id": "c6b20c99-2b97-17c1-cee8-b2149f0bb418"
        }
    }
}

Before 18.07.2024, we had a successful response (with 200 HTTP status code:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups('28ae0a0c-12b5-400f-be5d-f8e41e6692af')/photo/$entity",
    "@odata.mediaContentType": "image/jpeg",
    "@odata.mediaEtag": "W/\"e87d391ef45a92ffba151e2b9e043b15d1b9f00daf35b4ea21e2276e8cb5a00b\"",
    "@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET groups('<guid>')/photo?$select=height,width",
    "id": "default",
    "height": 648,
    "width": 648
}

For the /$value endpoint, we could get the photo itself.

When the photo was missing, we saw (which is OK and expected): 

{
    "error": {
        "code": "ErrorEntityNotFound",
        "message": "Exception of type 'Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException' was thrown.",
        "innerError": {
            "date": "2024-07-18T08:31:17",
            "request-id": "5f788404-8b50-4f8a-85b4-64451b1c235b",
            "client-request-id": "5b56cb51-f7ff-ea74-ac87-106256811b7a"
        }
    }
}

What could be the reason for such an error?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2024-07-24T16:25:45.5566667+00:00

    Seems to work fine here, if you are still seeing problems, best open a support case. And say hi to Paul from me :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.