An API that connects multiple Microsoft services, enabling data access and automation across platforms
The behavior is expected and documented characteristics of Microsoft 365 profile photos.
Key points from the available information:
- Profile photos are stored and served by Exchange Online / Microsoft Entra ID as binary image data, not as a transparent byte-for-byte store of the uploaded file.
- When a photo is uploaded via
PATCH/PUTto/users/{id}/photo/$value, the service can process the image (for example, re-encode, normalize, or resize) before storing it. The documentation states only that the photo size is limited to 4 MB and that the data is binary, not that the original file bytes are preserved. - When the photo is retrieved via
GET /photo/$value, the response is the stored binary image, which may differ at the byte level from the originally uploaded file even if the visual content is the same. This is consistent with other documented photo flows (for example, EWS and profilePhoto) where images are encoded/decoded and potentially transformed. - Because of this processing, comparing Base64 strings (or raw bytes) of the uploaded and downloaded images is not a reliable way to verify correctness. Only the rendered image content can be expected to match, not the exact binary.
Given this, the observed difference between the uploaded Base64 and the retrieved Base64 is normal. To validate correctness:
- Treat
GET /photo/$valueas returning the canonical stored representation, not a round-trip of the original file. - Compare images visually or by dimensions/format (height, width, type) rather than expecting identical Base64.
There is no indication in the provided documentation that Microsoft Graph guarantees byte-for-byte equality between uploaded and retrieved profile photo binaries.
References:
- profilePhoto resource type
- Update profilePhoto
- Get profilePhoto
- Known issues in Microsoft Graph
- Manage user profile photo settings in Microsoft 365 by using Microsoft Graph
- Get user photos by using EWS in Exchange
- Why is my profile image being investigated. "Your profile picture is under review" - Microsoft Q&A
- Microsoft Graph: AIInteractionHistory api and OData filters - Microsoft Q&A
- How to remove cached image in Bing? - Microsoft Q&A
- Attachments not downloading - Microsoft Q&A
- Signature not allowing use of images (Mac Outlook) - Microsoft Q&A