The Microsoft Graph Calendar API is not supported for on-premises or hybrid Exchange mailboxes. If you encounter the error MailboxNotEnabledForRESTAPI, it indicates that the mailbox is either inactive, soft-deleted, or hosted on-premises, which means it cannot be accessed via the Graph API.
For accessing on-premises calendars, the recommended approach is to use Exchange Web Services (EWS). EWS provides the necessary functionality to interact with mailboxes hosted on Exchange servers, including those in hybrid deployments.
Currently, there are no configurations that would allow the Microsoft Graph API to work with on-premises mailboxes in a hybrid setup. Microsoft has guidelines that specify these limitations, and it is advisable to consult those for detailed information on supported scenarios.
To correctly advise your customers, you should inform them that migrating to a fully cloud-based Exchange Online mailbox would be necessary to utilize the Microsoft Graph Calendar API. Otherwise, EWS remains the viable option for accessing on-premises mailbox data.
References: