Announcement: Need a free practice exam or an interactive mocks material for a Microsoft certification? Click here to use the MS Forms I've created previously.
April 4, 2020 | by iaur | posted as Failure, Teams (formerly S4B)
https://graph.microsoft.com/v1.0/me/photo/$value
That will mimic what Teams is doing to retrieve the user photo
Photo will display in this sample response:
{ “cache-control”: “private”, “client-request-id”: “80e96c73-3a98-e019-6bce-64d8d36bd6f0”, “content-length”: “36139”, “content-type”: “image/jpeg”, “etag”: “\”39C9823F\””, “request-id”: “b548ac69-f6d8-4d8c-96cc-2cc45c81c755” } |
Below sample response is due to the mailbox that is not provisioned or not seen by Microsoft 365:
Regardless where the mailbox resides (on-premise or cloud), user profile photo will be repress from the user mailbox. So make sure that mailbox is provisioned and accessible.
For DirSynced organization, local AD must be synced properly with Azure AD. If it is failing to sync the properties that is needed (specifically “thumbnailPhoto” attributes which is mapped to /photo/$value) you must fix any AD Connect sync problems and make sure both objects are matched properly.
For pure cloud mailbox, allow 24-48 hours for global replication to occur and fix itself. Otherwise you can try to re-provision the mailbox.