Graph API in hybrid mode - Delta requests failing

Jaspreet Bakshi 6 Reputation points
2021-11-12T16:58:52.197+00:00

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.

Exchange Hybrid management
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,371 Reputation points
    2021-11-15T09:12:41.24+00:00

    Hi, dear @Jaspreet Bakshi

    This is because your users lack Office 365 licenses and you need to grant O365 licenses to users.

    149306-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.