-
Notifications
You must be signed in to change notification settings - Fork 285
Description
I'm using the M365 Entra photo sync on our Mac's within the estate without issue to sync users photo's, up until now where it's stopped working when it's run for the first time i.e. after a rebuild or removal from Intune. Has anyone else noticed this issue? I thought originally it may be down to the new MacOS, but I'm seeing this on Sequoia, which leads me to think the issue lies elsewhere.
The script itself does run and appears to complete, however it's unable to pull the image correctly. The jpg does appear within the user profile but is a matter of a few hundred bytes and doesn't appear to be a proper jpg. Therefore it cannot be opened/ viewed.
I added some logging to the script in an attempt to try and figure out why it's stopped working. It appears when trying to pull the photo, its unable to do so, throwing HTTP 400 as the error. Logs below.
Tue 11 Nov 2025 13:30:45 GMT | [STEP] Confirm user exists - Completed successfully
Tue 11 Nov 2025 13:30:45 GMT | [STEP] Download user photo - Starting
Tue 11 Nov 2025 13:30:45 GMT | Attempting to download photo for id= (key=user@user-email.com) -> /Users/user/PhotoID.jpg
Tue 11 Nov 2025 13:30:45 GMT | Photo attempt: https://lnkd.in/eA7Qzb-V -> HTTP 400
Tue 11 Nov 2025 13:30:45 GMT | Unexpected HTTP 400 from https://lnkd.in/eA7Qzb-V
Tue 11 Nov 2025 13:30:45 GMT | Photo attempt: https://lnkd.in/efv_cEMG -> HTTP 400
Tue 11 Nov 2025 13:30:45 GMT | Unexpected HTTP 400 from https://lnkd.in/efv_cEMG
Tue 11 Nov 2025 13:30:45 GMT | Photo attempt: https://lnkd.in/ejQ-nv8p -> HTTP 400
Tue 11 Nov 2025 13:30:45 GMT | Unexpected HTTP 400 from https://lnkd.in/ejQ-nv8p
Tue 11 Nov 2025 13:30:45 GMT | No photo found for id= after trying 3 endpoints
Tue 11 Nov 2025 13:30:45 GMT | [STEP] Download user photo - Failed (exit 1)