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:
The following is required to proceed further:
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.
From the Microsoft Entra admin center:
The Name given to the App Registration should be something meaningful to yourself.
Once created, copy the values of the following:
Paste these values into Notepad for reference.
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:
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.
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:
Microsoft Graph will be added by default.
![]()
The Object ID is required when registering the Service Principal on the Exchange Server.
In Microsoft Entra admin center:
Paste thess values into Notepad for reference.
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:
Steps to register the Service Principal
Windows PowerShell will need to be Run as administrator
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.
Install-Module -Name ExchangeOnlineManagement
Import-module ExchangeOnlineManagement
Connect-ExchangeOnline -Organization <Tenant id>
Replace <Tenant id> with the value obtained from 1. Create An App Registration above.
New-ServicePrincipal -AppId <client id> -ObjectId <obj id>
Replace <client id> and <obj id> with the value obtained from 1. Create An App Registration and 4. Obtain the Object ID of the account emails will be sent from above.
Get-ServicePrincipal | fl
Add-MailboxPermission -Identity "EMAIL ADDRESS" -User <obj id> -AccessRights FullAccess
Replace EMAIL ADDRESS with the email address of the user and <obj id> with the values obtained from 4. Obtain the Object ID of the account emails will be sent from above.
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.