Migrating from EWS API to Graph API for One-Touch Join

This topic describes how to migrate from an existing One-Touch Join deployment for Office 365 that uses the EWS API to access calendars used for OTJ, to one that uses Microsoft Azure and the Exchange Graph API to access those calendars.

We previously supported One-Touch Join deployments for Office 365 that used a service account with application impersonation to read OTJ calendars. This service account authenticated using OAuth and used the EWS API to access mailboxes. However, the Application Impersonation role assignment to service accounts has been deprecated by Microsoft, and from February 2025, this role was removed completely (for more information, see Microsoft's announcement). These deployments must be migrated to use the Graph API to provide access to room resource mailboxes.

For reference, the previous instructions on configuring an Office 365 environment using OAuth and the EWS API is available on our v34 documentation website.

The migration process involves the following steps:

  1. Creating and configuring a new App registration in Azure.
  2. Restricting the scope of the App registration.
  3. Confirming calendar processing settings for room resources.
  4. Creating an associated O365 Graph integration on Pexip Infinity.
  5. Swapping integrations from EWS to Graph.

Prerequisites

When migrating from EWS API to Graph API, you do not need to change your existing OTJ endpoint configuration or email addresses.

Before you begin, ensure that the following configuration is complete:

  1. Ensure each physical room that has a One-Touch Join endpoint in it has an associated room resource with an email address.
  2. Enable auto calendar processing for each room resource, so that the room automatically accepts meeting requests if it is available, and automatically declines an invitation if it is already booked.
  3. Ensure you have access to the Azure portal, using an account that can grant admin consent.
  4. Ensure you have admin access to your Office 365 web interface, and access to the Microsoft Exchange Online and Azure Active Directory Modules for Windows PowerShell. (If you are connecting from your Windows PC for the first time, you may need to install these modules. See these Microsoft articles about connecting to Exchange online and Microsoft 365 with PowerShell for more information.)