We've been running into failures while querying the Graph API set up in hybrid mode (i.e. with Exchange on premises)
Calls like this are failing:
https://graph.microsoft.com/v1.0/users/{USER_ID}/contactFolders/{FOLDER_ID}/contacts/delta
The error message we get is like this:
Error:
code:MailboxNotEnabledForRESTAPI
message:The mailbox is either inactive, soft-deleted, or is hosted on-premise.
innererror:
client-request-id:e62879eb-9570-4e91-96b8-41b210af9258
date:2021-11-10T19:23:20
request-id:e62879eb-9570-4e91-96b8-41b210af9258
ResponseHeaders:
[0]:{ Value: ["Wed, 10 Nov 2021 19:23:19 GMT"], Key: "Date" }
[1]:{ Value: ["private"], Key: "Cache-Control" }
[2]:{ Value: ["chunked"], Key: "Transfer-Encoding" }
[3]:{ Value: ["Accept-Encoding"], Key: "Vary" }
[4]:{ Value: ["max-age=31536000"], Key: "Strict-Transport-Security" }
[5]:{ Value: ["e62879eb-9570-4e91-96b8-41b210af9258"], Key: "request-id" }
[6]:{ Value: ["e62879eb-9570-4e91-96b8-41b210af9258"], Key: "client-request-id" }
[7]:
Key:x-ms-ags-diagnostic
Value:
[0]:{"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"MN1PEPF00002F25"}}
[8]:{ Value: ["odata.track-changes"], Key: "Preference-Applied" }
Even though this feature is in preview, we were able to get some assistance from Microsoft and they mentioned that the error is essentially a "404 from the Exchange workload".
Anyone else had a similar experience while using the Graph API in hybrid mode? Any help or information is highly appreciated.