Skip to content

Inactive Distribution Groups (last 10 days)

The question it answers: Which distribution groups received no mail in the last 10 days?

Microsoft keeps the message trace for 10 days per query, so this report cannot cover a longer period.

Where in the appExchange Online › Groups › Inactive Distribution Groups
WorkloadExchange Online
KindTable
DataRead from Microsoft 365 when someone first opens it, then kept for the report cache lifetime (Settings > Data & cache, 1 hour unless changed). It reads through PowerShell (Exchange Online or SharePoint Online), so the first load takes longer than a Graph report.
LicenceExchange Online.
Report id (API and MCP)exchange.groups.inactive-distribution-groups
An empty result meansEvery distribution group received mail in the last 10 days.
ColumnKeyTypeMeaning
Display NameDisplayNameText
Group TypeGroupTypeTextStatic or Dynamic
Last Active DateLastActiveDateDateTime

Licence: Exchange Online.

Application permissions on the IntensiveReports app registration (all permissions):

PermissionAPIWhat it allowsNote
Exchange.ManageAsAppOffice 365 Exchange OnlineManage Exchange As Application+ View-Only Recipients

Roles and other setup:

  • Exchange role: Message Tracking
Data sources it reads
  • PowerShell: Get-DistributionGroup -ResultSize Unlimited
  • PowerShell: Get-DynamicDistributionGroup -ResultSize Unlimited
  • PowerShell: Get-MessageTraceV2 -StartDate (now - 10 days) -EndDate (now) -Status Expanded -ResultSize 5000 (next batch: -EndDate / -StartingRecipientAddress of the last row)
GET /ir-api/v1/reports/exchange.groups.inactive-distribution-groups?size=100

An AI assistant reads it with the MCP tool get_report and the id exchange.groups.inactive-distribution-groups. The client needs the Read grant for Exchange Online. See Using the API.