microsoftgraph / msgraph-sdk-dotnet-core

The core Microsoft Graph client library for .Net. (Microsoft.Graph.Core)
Other
150 stars 50 forks source link

ErrorEntityNotFound - Exception of type 'Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException' was thrown. #851

Closed epardos1973 closed 4 months ago

epardos1973 commented 4 months ago

Describe the bug

I have created an application in microsoft entra ID with the next permissions:

permissions

When I try to recover the any user´s photo profile I received

image

Expected behavior

Expected behaviour is to show the image associated to use

How to reproduce

You need create an microsoft entra application, give the necessary permissions and ask for any user´s photo profile

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ``` ```

Configuration

No response

Other information

No response

andrueastman commented 4 months ago

Thanks for raising this @epardos1973

As this is an API related question (and this repo is mainly intended for SDK related issues) the right place to ask the question would be at https://aka.ms/askGraph.

The error seems to suggest that the specific user does not have a photo associated with it (404 http status code). Any chance you can confirm if the user has a photo?

epardos1973 commented 4 months ago

Thanks for answer

EntraM

All users in Microsoft Entra have profile photo, these photos have been set by the administrator.

I forgot to say that I have this problem in a trial version, it does not occur in Microsoft Entra within the company. Could be this the reason?

Thanks in advance.

andrueastman commented 4 months ago

@epardos1973 I'm not sure if the trail status would have anything to do with it.

Any chance you can try uploading a new photo to the user and trying to request again? I would then suggest asking a question with the API owners to get clarity on whether there are limitations with the trial accounts over at https://aka.ms/askGraph

microsoft-github-policy-service[bot] commented 4 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.