“MailboxNotHostedInExchangeOnline” when trying to get user photos from MS Graph

落爺英雄遲暮 提交于 2020-05-25 17:16:26

问题


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.



来源:https://stackoverflow.com/questions/61457907/mailboxnothostedinexchangeonline-when-trying-to-get-user-photos-from-ms-graph

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!