How to Replace EWS With Microsoft Graph in a Mail App?
Resolved Email & Outlook
TB
Tyler Bennett
November 24, 2026
4 replies
78 views
Reviewed by moderators
3 participants

We have an in house C# app that uses the EWS Managed API to read mail and create calendar events. EWS is being retired in Exchange Online. What is the path to Microsoft Graph?

Accepted answer
Marked as the solution to this question

Most EWS calls have a Graph version. A simple map:

1. Read and send mail. Use the Graph messages endpoints and the sendMail action.
2. Calendar. Use the events endpoints for create, update and delete.
3. Contacts and folders. Use the contacts and mailFolders endpoints.
4. Streaming notifications. Use Graph change notifications with a webhook.
5. Impersonation. Use application permissions in a Microsoft Entra app registration, and then limit the app to chosen mailboxes with role based access control for applications in Exchange Online.
6. Admin tasks that only EWS or PowerShell did. Check the Exchange Online Admin API.

Plan the work in this order: sign in with OAuth in an Entra app registration, test the mail calls, then move calendar calls, then retire the EWS code. The EWS Managed API library will not work against Exchange Online after retirement.

What about public folders? We read one public folder.

That is a known gap. Microsoft said it will not offer APIs to create, read, update or delete public folders programmatically after October 2026. Check the Microsoft Learn page on EWS deprecation for the current status of every gap. If you only read one folder, consider moving that content to a shared mailbox, which Graph can read.

A shared mailbox is a good idea for us. Thanks.