Skip to content

Microsoft 365 Management Activity is an audit activity feed for Microsoft 365. It reports the actions that users, administrators and policies take across Microsoft 365 services, including the email messages that users send. This guide walks you through the steps to gather the necessary information and configure a Microsoft app registration for the purpose of creating a Microsoft 365 Management Activity Email Security integration.

Prerequisites

Before you begin, ensure that you have:

  • Access to the Microsoft Entra admin center with a role that can create an app registration, grand admin consent, and change the audit settings for the organization.
  • Auditing turned on for your Microsoft 365 organization

Registering an Application

Required Permissions

Application PermissionPurpose
ActivityFeed.ReadRead the audit activity feed of the organization. This permission covers the Send, SendAs and SendOnBehalf audit operations.
ActivityFeed.ReadDlpRead the data loss prevention (DLP) part of the same feed, required to retrieve attachment information and MipLabels.

Procedure

  1. Sign in to the Microsoft Azure portal. Use an account that can create an app registration and grant admin consent
  2. Navigate to App Registrations
  3. Select New registration
  4. Fill in the field titled Name
  5. In the section titled Supported account types, select the single tenant option
  6. Leave the field titled Redirect URI empty
  7. Select Register
  8. On the Overview page, take note of the Application (client) ID and the Directory (tenant) ID. Store both values in a safe location
  9. Select API permissions from the sidebar on the left
  10. Select Add a permission
  11. Select the Microsoft APIs tab, then select Office 365 Management APIs
  12. Select Application permissions
  13. Add all of the required permissions. See the section above titled Required Permissions
  14. Select Add permissions
  15. Select Grant admin consent, then confirm the dialog that appears
  16. In the Configured permissions table, examine each permission. The Type column must read Application. The Status column must show that your organization granted consent
    • Note: The integration runs without a signed-in user, so a delegated permission does not work
  17. You have now registered an application. Proceed to the next section titled Generating Credentials

For more information on app registrations, see the Microsoft Quickstart: Register an application docs page.

Generating Credentials

  1. In the application registration, select Certificates & secrets from the sidebar on the left
  2. Select the Client secrets tab, then select New client secret
  3. Fill in the field titled Description
  4. Select a value for the field titled Expires
    • Note: A client secret has a maximum lifetime of 24 months. The integration stops when the secret expires. Record the expiry date and replace the secret before that date
  5. Select Add
  6. Take note of the value in the Value column and store it in a safe location
    • Note: The portal shows two columns, Secret ID and Value. The integration needs the Value. The portal shows the Value only on this page, and does not show it again
  7. You have now created a client secret. Proceed to the next section titled Configuring the Integration

For more information on client secrets, see the Microsoft Add and manage app credentials docs page.

Configuring the Integration

To configure a new Microsoft 365 Management Activity integration, provide each of the values as defined below:

Integration ParameterDescription
Tenant IDThis is the Directory (tenant) ID value from the Overview page of the application registration.
Example: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
Client IDThis is the Application (client) ID value from the Overview page of the application registration
Client SecretThis is the Value of the client secret from the steps above. It is not the Secret ID
Cloud (Optional)This is the Microsoft 365 cloud that hosts your organization.
Operations (Optional)These are the Exchange audit operations that the integration reports. The choices are Send, SendAs, SendOnBehalf and MipLabel. By default, Microsoft 365 Management Activity integrations report all four. Remove MipLabel to report send events only

Additional Resources