“MailboxNotHostedInExchangeOnline” when trying to

2020-07-08 00:23发布

问题:

Using

`https://graph.microsoft.com/beta/users/${email}/photo/$value`

had been working for me last week but now it throws a 400 error Error Output

"Mailbox is hosted by an on-premise or non-Exchange server, which is not supported."

As far as I know nothing has changed from our end. Using the v1.0 doesn't seem to make any difference. I think the user photos are stored on an on-premise exchange but are then synced up at AAD. This has been working fine for at least a year like this.

Anybody know if anything has changed in the last few days? Any documented solutions to this?

回答1:

Exchange Online team was trying to clean up some error codes and such they changed MailboxNotEnabledForRestAPI with HttpStatus code 404 to MailboxNotHostedInExchangeOnline with HttpStauts code 400. This was un-intended and such we have since reverted this change, and are rolling out the fixes to prod with urgency.