Skip to content

How to configure mailbox access using EWS application-only connection

For users of the Email Sidebar on:

4 min read

Note

The privacy and security of data access and handling during RG Email Sidebar deployment are guaranteed by the applicable Revenue Grid policies.

Introduction

This guide provides step-by-step instructions for configuring the RG Email Sidebar and Sync Engine to access your users’ corporate mail server using application-only (app-only) access for Exchange Web Services (EWS).

App-only access uses an application’s identity to connect securely to Microsoft 365 or Exchange resources without relying on individual user credentials. It ensures enhanced security, scalability, and simplified management for administrators.

EWS app-only access is ideal for organizations that rely on Exchange-specific features like email, calendars, and contacts. If your organization needs broader integration with Microsoft 365 services, such as SharePoint or Teams, consider configuring MS Graph app-only access.

This guide is for administrators setting up the mailbox connection for RG Email Sidebar and Sync Engine for the first time. For migration steps, refer to Migration from delegated to application-only access for Exchange Web Services (EWS).


Prerequisites

Before configuring mailbox access via an EWS application-only connection, ensure the following:

  1. Microsoft Entra admin access: Administrative rights to the Microsoft Entra admin center (formerly Azure AD portal) to register and grant the RG application permissions.
  2. RG admin panel access: Platform administrator or profile administrator rights to configure the RG admin panel.

Configuration

To configure mailbox access using an EWS app-only connection:

  1. Create an RG profile.
  2. Set the profile’s mailbox access type.
  3. Provision users to the profile.
  4. Verify connectivity.

Create RG profile

  1. Log in to the RGES Admin Panel using your admin credentials.
  2. Go to the Profiles tab.

  3. In the upper-right corner, click Create Profile.

  4. Enter the Name and External ID, then click Save.

Important

Once saved, the External ID becomes read-only and cannot be changed.

A notification confirms successful profile creation, and the profile details page will open.


Set profile’s mailbox access type

  1. In the profile, go to the Connectivity subtab.

  2. In the Email configuration section, in the Mailbox access type menu, select Microsoft 365 OAuth (EWS API) - App-Only logon.

  3. Click Connect account. This will open the Office 365 OAuth dialogue.

  4. Enter your Microsoft 365 admin credentials to grant permissions for EWS app-only access.

  5. In the permission authorization dialog, click Accept to complete the setup. If successful, the Email configuration section will display Connected.

Note

When permissions are granted, the RG application is automatically registered in your Microsoft 365 tenant. You can manage these permissions in the Microsoft Entra admin center. For more information, refer to Grant tenant-wide admin consent to an application.


Provision users

  1. Go to the profile’s Details subtab.

  2. In the Miscellaneous section, in the Email domains assigned to this Profile field, specify the users’ email domains.

  3. Copy the Provisioning URL and share it with end users.

  4. Users should follow the link and complete the steps in the Registration Wizard.

Users will be automatically assigned to the profile if their email domains match the ones specified in the Email domains assigned to this Profile field during registration.


Verify connectivity

Important

Be sure to complete this step. It is essential to finalize mailbox access configuration and ensure RG Email Sidebar and Sync Engine can access and sync users’ mailbox data.

  1. In the profile, open the Connectivity subtab.

  2. In the Email configuration section, click Check users’ impersonated access.

Once verified, all user accounts assigned to the profile are configured to use EWS app-only access. Connection statuses will be displayed for each user.


Troubleshooting

If mailbox authentication issues occur, ensure the connectivity verification step is completed. Follow the steps in the corresponding instructions. If issues persist, contact our support team.


See also