question

JonasCarlsson-8642 avatar image
1 Vote"
JonasCarlsson-8642 asked DianaWanjuhi-1579 answered

MS graph hybrid Exchange error

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@contoso.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@contoso.com/mailboxSettings

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

microsoft-graph-mail
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi anonymous user

Since your question is more related to Microsoft Graph, I have removed the tag "office-exchange-server-administration" which is used for general questions for Exchange on-premises server.
Thanks for your understanding and hope you will get the answer soon.

0 Votes 0 ·

1 Answer

DianaWanjuhi-1579 avatar image
0 Votes"
DianaWanjuhi-1579 answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.