ManageEngine has been recognized as a Customers' Choice in the 2023 Gartner Peer Insights™ Voice of the Customer for Application Performance Monitoring and Observability report. Learn more

Configuring OAuth for EWS Server

Steps to configure OAuth for EWS Server:

  1. Log in to

  2. Under Azure services, navigate to App registrations -> New registration.

  3. In the displayed page, enter a Name of your choice and choose the Supported account types.
  4. In the Redirect URI field, copy-paste the Redirect URL of APM.

  5. In the next page, you will find the application details. Copy the Client ID to APM.

  6. Click on Endpoints to open the right panel containing all endpoints.
  7. Copy OAuth 2.0 authorization endpoint (v2) and OAuth 2.0 token endpoint (v2) to Authorization URL and Token URL in APM respectively.

  8. From the left panel, navigate to Certificates & secrets -> New client secret.

  9. In the displayed page, provide a Description for the client secret.
  10. Under Expires, choose the validity of the client secret and click on Add.

  11. You will find the client secret generated. Copy it to the Client Secret in APM.

  12. In the left panel, navigate to API Permission -> Add a permission.
  13. From the right panel that pops up, click on APIs my organization uses. Enter Office 365 in the search bar and select Office 365 Exchange Online from the displayed list of APIs.

  14. Choose Delegated Permissions -> EWS and enable the checkbox to add the corresponding permission.

  15. Click on Grant admin consent for <application name>. A confirmation window will be displayed. Click Yes to proceed.

You have now configured Microsoft Azure as the authorization server for your organization using Microsoft Outlook as the mail server.

Use the following values to configure OAuth setup for EWS Server:
  • Scope :
  • Token Request Method :Post request body