microsoftgraph/msgraph-sdk-dotnet-core

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

Closed this issue · 4 comments

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 ```
</details>


### Configuration

_No response_

### Other information

_No response_

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?

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.

@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

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.