MS graph hybrid Exchange error

Jonas Hellström 6 Reputation points
2021-09-14T11:23:36.25+00:00

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 https://outlook.office365.com/autodiscover/autodiscover.xml -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: https://graph.microsoft.com/v1.0/users/user[@](/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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points
    2021-09-16T12:41:14.293+00:00

    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,

    Diana.

    0 comments No comments