Home Search

DriveWorks Pro 23
How To: Configure Microsoft Entra ID For Exchange Online Email Authentication (KB26011301)

Send Feedback

How To: Configure Microsoft Entra ID For Exchange Online Email Authentication

Microsoft Entra ID is an access management service that provides the essential identity, authentication, policy, and protection to secure users, devices, apps, and resources.

See Microsoft Entra ID for more information.

This topic details the steps required to set up Microsoft Entra ID to allow Exchange Online authentication when sending emails from the following DriveWorks modules:

Prerequisites

The following is required to proceed further:

  • Microsoft Entra ID account that has an active subscription.

Microsoft Entra ID Configuration

The following steps are required to configure Microsoft Entra ID for use with the DriveWorks Exchange Online authentication method for sending emails.

The following steps involve the use of third party applications that could be subject to change.

All information is correct at the date of publishing this article (January 2026).

We cannot guarantee the completeness or accuracy of the information provided based on any changes made by the third party after this date.

1. Create An App Registration

From the Microsoft Entra admin center:

  1. Select App Registrations.
  2. Click New registration.
  3. Enter a Name for the App.

    The Name given to the App Registration should be something meaningful to yourself.

  4. Select the required option from Supported account types
  5. Click Register.

Once created, copy the values of the following:

  • Directory (tenant) ID
  • Application (client) ID

Paste these values into Notepad for reference.

2. Create a Secret

A Client Secret is required in the DriveWorks application that sends emails.

This is a secret string that the application uses to prove its identity when requesting a token.

With the App (created above) selected:

  1. Click Certificates & secrets.
  2. Click New client secret.
  3. Enter a description for this client secret.
  4. Set an Expires date.
  5. Click Add.

Copy the secret created from the Value field.

Client secret values cannot be viewed, except for immediately after creation. Be sure to save the secret when created before leaving the page.

Paste this value into Notepad for reference.

3. Set API Permissions

In order for DriveWorks to connect to Microsoft Entra ID with the client information provided, ensure the following permissions are set in the API Permissions section of the Microsoft Entra ID application to which you are connecting:

With the App (created above) selected:

  1. Select API Permissions.
  2. Click Add a permission.
  3. From the section APIs my organization uses select Office 365 Exchange Online.
  4. Select Application permissions and check the box for SMTP.SendAsApp in the SMTP category.
  5. Click Add permissions.
  6. With Office 365 Exchange Online listed in the Configured permissions section, click Grant admin consent for <your organization name>, and click the confirmation button.

Microsoft Graph will be added by default.

API Permissions in Azure Configuration.

4. Obtain the Object ID of the account emails will be sent from

The Object ID is required when registering the Service Principal on the Exchange Server.

In Microsoft Entra admin center:

  1. Select Users from the main menu.
  2. In the Users list select the user that emails will be sent from.
  3. Copy the User principal name (email address) value and Object ID key.

    Paste thess values into Notepad for reference.

5. Registering the Service Principal on the Exchange Server

The machine that sends emails using Exchange Online authentication is the Exchange Server.

The Service Principal is required to be registered on the Exchange Server before the DriveWorks module can send emails.

Before you begin

Before attempting to register the Service Principal, ensure:

  • An App Registration has been created.
  • The Application (client) ID has been recorded and is available.
  • The Directory (tenant) ID has been recorded and is available.
  • The Object ID has been recorded and is available.

Steps to register the Service Principal

  1. On the machine that is the Exchange Server, launch Windows PowerShell.

    Windows PowerShell will need to be Run as administrator

  2. Execute the following commands:

    Copy and paste each command into PowerShell and hit enter to execute, wait for the prompt to appear before proceeding to the next command.

    For commands that require terms replacing, copy into notepad to modify.

    Some commands may require additional responses to continue.

6. Return to the DriveWorks Module to Enter Credentials

Return to the DriveWorks module that will be sending emails and enter the Tenant ID, Client ID (obtained from 1. Create An App Registration) and Client Secret (obtained from 2. Create a Secret ) for the Exchange Online authentication.