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?
Choose Add a permission, and under Microsoft APIs, select Microsoft Graph, and then select Delegated permissions. Add the following permissions: User. Read - allows your application to sign-in your user.
You can consent to permissions in Graph Explorer by choosing either the Modify permissions tab or the Select permissions option in the settings gear next to your profile when you're signed in. The Modify permissions tab lists all the permissions that you need to run the query in the address bar.
The Microsoft Graph has two categories of permissions: application permissions and delegated permissions. Application permissions allow an app to act as any user, while delegated permission allows only signed-in users of the application. All permissions requested by Decisions are delegated permissions.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With