Unable to upload picture\photos

April 4, 2020 | by iaur | posted as Failure, Teams (formerly S4B)

Check photo retrieval

https://graph.microsoft.com/v1.0/me/photo/$value

Machine generated alternative text:
Apps 
devel oper. mi crosoft_. s/graph/gr aph - orer/previ ew 
o 
admin roles - Micro... 
Admin Center 
Breaking news from around the world 
Get the Microsoft News extension for Chrome 
No thanks 
Graph Solutions 
•s Microsoft 
Graph Explorer 
Graph Explorer 
Getting Started 
vi.a 
Docs 
API Reference 
Resources 
Programs 
All Microsoft 
Search 
nttps://graph.microsoft.com/vl 
Add it now 
Run query 
Request body 
Request headers 
Modify permissions Access token 
Berme Fernanaec 
admin@faceresionem.onmicro... 
Sample queries 
O History 
Key 
my manager

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.

  • Connect to MSOL
  • Run below cmdlet
    • Get-MsolUSer -Userprincipalname <INSERT_UPN> | select *ObjectID*
    • Redo-MsolProvisionuser -ObjectID <INSERT_ObjectID>

Feedback or Help?

Should you have one, click here

Boring Ads. Pardon me :)