MS graph hybrid Exchange error

Jonas Hellström 6 Reputation points

We have setup a Hybrid Exchange 2016 CU19 server.

We are trying to get Graph to work with it to pull settings from mailboxes.

This does not work.

What we have checked so far:

The app is setup correctly in azure, the api can pull from exchange online mailboxes.

The hybrid setup is working correctly, when running:
Test-OAuthConnectivity -Service autod -TargetUri -Mailbox test@Company portal .com -Verbose | Format-List
we get a answer of success, same when running from O365 to Onprem.

The request hits the IIS of the Exchange server and gets answer 200, which is success.

So there is connectivity, but the api is giving the following error:

"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2021-09-14T11:13:45",
"request-id": "5ace2f50-fb8f-4d0c-8bb6-90a824a8daa6",
"client-request-id": "5ace2f50-fb8f-4d0c-8bb6-90a824a8daa6"

If trying to use Beta we get the following error:

"error": {
"code": "MailboxNotEnabledForRESTAPI",
"message": "The mailbox is either inactive, soft-deleted, or is hosted on-premise."

The request we use is:[@](/users/na/?userId=a28c79c1-c609-48db-b55f-1783d1187afb).com/mailboxSettings

We are kind of stuck here, after talking with MS i was told to post here.

Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
808 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Diana Wanjuhi 1,371 Reputation points Microsoft Employee

    Hello anonymous user Thank you for reaching out. The reason for this error is that getting mailbox settings is not yet available for mailboxes in hybrid deployments. From the documentation on hybrid rest:

    Only v1.0 of the Mail, Calendar and Contacts API are available for mailboxes in hybrid deployments. Other v1.0 API sets, such as the Groups API, or APIs in other versions, are not.

    Would you consider filing a feature request on our developer community platform so this can be looked into?

    Let me know whether this helps and if you have further questions,


    0 comments No comments