Skip to main content

Target Exchange Online Requirements, Permissions, and Ports

The Access Analyzer for Exchange Solution provides the ability to audit Exchange Online. It scans:

  • Exchange Online (Limited)

See the Exchange Support and Permissions Explained topic for details on the type of auditing supported by data collector and by job group.

Data Collectors

This solution employs the following data collectors to scan the target environment:

Permissions

For .Entra ID Inventory Prerequisite with the AzureADInventory Data Collector

See the Microsoft Entra ID Auditing Configuration topic for additional information.

Permissions for the Registered Microsoft Entra ID Application: Office 365 Exchange Online

  • Application Permissions:

    • Exchange.ManageAsApp – Manage Exchange As Application
    • full_access_as_app – Use Exchange Web Services with full access to all mailboxes
  • Exchange Administrator role assigned to the registered application's service principal

See the Exchange Online Auditing Configuration topic for additional information.

For Exchange Web Services API Permissions with the EWSMailbox Data Collector

  • Exchange Admin Role
  • Discovery Management Role
  • Exchange Online License

See the Exchange Web Services API Permissions topic for additional information.

For Exchange Web Services API Permissions with the EWSPublicFolder Data Collector

  • Exchange Admin Role
  • Discovery Management Role
  • Exchange Online License with a mailbox

See the Exchange Web Services API Permissions topic for additional information.

For Exchange PowerShell with ExchangePS Data Collector

  • Discovery Management Role
  • Organization Management Role

See the Exchange PowerShell Permissions topic for additional information.

Ports

The following firewall ports are needed:

For AzureADInventory Data Collector

  • TCP 80 and 443

For EWSMailbox Data Collector

  • TCP 389
  • TCP 443

For EWSPublicFolder Data Collector

  • TCP 389
  • TCP 443

For ExchangePS Data Collector

  • TCP 135
  • Randomly allocated high TCP ports