Why I am receiving "ErrorEntityNotFound" as anwser to https://graph.microsoft.com/v1.0/users/usuario1@clearonespainsl.onmicrosoft.com/photo/$value

Esther 0 Reputation points
2024-07-08T12:06:50.7366667+00:00

I have try to recover the user photo profile using application token and user token and the result is the same. The user have photo profile, if the user execute https://graph.microsoft.com/v1.0/me/photo/$value using his/her token the image is shown.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,006 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 105.7K Reputation points MVP
    2024-07-08T15:33:47.5566667+00:00

    If you have verified that the user does have a photo, the issue is likely with the permissions you are using. To access this data, you'd need User.Read.All permissions, so make sure the token you are obtaining contains them.


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.