EzeScan WebApps

Microsoft Graph (Mailbox)

Overview

This external connection Allows connectivity to Microsoft 365 mailboxes via the Graph API which is part of the Office suite of applications.

Authentication Types

There are ultimately two pathways for enabling the connection of EzeScan Cloud to a mailbox: inbuilt or custom.

Type

Description

Inbuilt

The inbuilt OAuth registration is the quickest way to start importing emails from an Exchange Online mailbox.

In order to configure this mode, you will need to get a domain administrator to provide consent for our application registration to read and write data in your tenancy.

Custom

A custom OAuth registration provides more granular configuration options around security as your administrator is able to manage all of the settings of the Application Registration in Azure.

In order to configure this mode, you will need a domain administrator to create a Custom Application Registration in the azure portal as well as provide you with the associated details to connect to that registration. They will also need to provide consent for your application registration to read and write data in your tenancy.

See instructions for Setting up Custom Application Registration in Azure here

Inbuilt Settings

Setting

Description

Allow Shared Mailbox

Tick this to also request the relevant Shared Mailbox Permissions
With this disabled the following scopes are requested:

  • Mail.ReadWrite

  • offline_access

  • openid

  • profile

With this enabled the scopes above are requested in addition to:

  • Mail.ReadWrite.Shared

OAuth Session

Click the authorize button, if using an authentication method that requires interactive login then a Microsoft 365 login window will be displayed.

image-20260610-122433.png


image-20260610-123248.png


If it’s the first time connecting one of our products to your Microsoft 365 tenancy then an administrator will need to approve the connection, and you will see the following screen:

image-20260610-124718.png
Enter the reason for the access and click request approval

You will then see the following screen:

image-20260610-124821.png

Please contact your administrator and have them navigate to the Azure Portal > Enterprise Applications > Admin consent requests and then approve the request for “EzeScan Office365 Connector”.

image-20260610-125147.png

Once the connection has been approved by your tenant administrator navigate back to the connection and click the Authorize button again.

If for some reason you have an OAuth Session with the status of “Initial” then click the Delete Session button.

image-20260610-125420.png


If the connection is successful, then your OAuth Session status window will look like the following:

image-20260610-125656.png

The email displayed in the User section must either be be the mailbox you wish to import from or have access to the target shared mailbox you wish to import form.

:warning:

Note: When configuring a connection to an on-premises environment, this error may be displayed. If encountered, submit a Support ticket and provide a screenshot containing the full URI. The URI will need to be registered by the EzeScan Support team, who will confirm completion through the support ticket.

Screenshot 2026-11-30 at 9.34.17 am.png

Custom Authorization Settings

Setting

Description

Grant Type

This integration supports the following grant types:

Authorization Code

In Authorization Code mode the application redirects to Microsoft for the user to login to their Office 365 account.

This grant type should be selected when the user account has access to the mailbox you wish to import emails from.

Client Credentials

In Client Credentials mode the application is authenticated using a client Id and corresponding secret.

Generally used for server-to-server or background communication.

The end user is never asked to directly Authenticate with Office 365.

This grant type should be selected when:

  • Multiple mailboxes need to be accessed using a single app registration.

  • Administrators want to enforce strict application-level permissions.

  • Only provide access to shared mailbox without also giving access to other personal mailboxes.

  • Remove the dependency on a specific user account which is better for server-to-server communication.

Tenant Id

The Tenant Id for the connection

Client Id

The Client Id for the connection

Client Secret

Client secret to connect to Microsoft Graph API.

See instructions for Setting up Custom Application Registration in Azure here