This guide walks you through creating the configuration needed to access Exchange Online message traces using the Exchange Online Email Security integration.
- In the Azure portal, navigate to App registrations.
- Select + New registration.
- Configure a name for the registration, for example "Exchange Online Integration".
- Configure Supported account types as needed for your tenant.
- Select Register.
- On the Overview page for your new app registration, note down the Application (client) ID and the Directory (tenant) ID. You will need these values later.
- Within the app registration you created in the previous step, navigate to Manage → API permissions.
- Select + Add a permission.
- In the Request API permissions dialog, select Microsoft Graph → Application permissions. Locate the ExchangeMessageTrace.Read.All permission, check the box next to it, then select Add permissions.
- Select Grant admin consent for {your tenant name}. Follow the dialog that appears to finish granting admin consent.
- In the Configured permissions table, find Microsoft Graph → ExchangeMessageTrace.Read. Verify that the Type column reads Application, and that the Status column reads ✅ Granted for {your tenant name}.
- Within the app registration you created in the previous step, navigate to Manage → Certificates & secrets.
- Navigate to the Client secrets tab.
- Select + New client secret.
- In the Add a client secret dialog that appears, enter a description and expiration appropriate for your tenant, then select Add.
- Find your new secret in the Client secrets table. Note down the secret value from the Value column. Store this in a safe place.
The secret value will not be shown again after you leave this page. Make sure you record it in a secure location.
Create your integration by supplying the following configuration values:
Client ID: use the Application (client) ID gathered in step 1.
Tenant ID: use the Directory (tenant) ID gathered in step 1.
Client Secret: use the Client secrets → Value gathered in step 3.