Skip to content

Admin Actions Outside Business Hours (7 days)

The question it answers: Which Exchange or Entra admin actions did people take outside business hours in the last 7 days?

Attackers who take over an admin account usually act when nobody is watching - at night and at weekends. Every Exchange or Entra admin action by a person outside business hours in the last 7 days; night and weekend actions are highlighted.

Where in the appTenant › Compliance & Audit › After-hours Admin Actions
WorkloadCompliance
KindTable · dashboard tile
DataA scan: it runs only when someone presses Run scan (or calls the API’s scan action) and can take minutes. The last result is kept until the next scan.
LicenceMicrosoft Purview Audit (Standard).
Report id (API and MCP)tenant.compliance.after-hours-admin-activity
ColumnKeyType
When (server time)LocalTimeStatus
DayDayText
WhoUserPrincipalNameText
OperationOperationText
WorkloadWorkloadText
TargetTargetText
Client IPClientIpText
User typeUserTypeText
FilterKey (API)On when the page opens
Only night and weekend actionsnight-weekendNo

Licence: Microsoft Purview Audit (Standard).

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

PermissionAPIWhat it allowsNote
AuditLogsQuery.Read.AllMicrosoft GraphRead audit logs data from all services
Data sources it reads
  • POST /v1.0/security/auditLog/queries (exchangeAdmin, azureActiveDirectory)
  • GET /v1.0/security/auditLog/queries/{id}/records
GET /ir-api/v1/reports/tenant.compliance.after-hours-admin-activity?size=100
GET /ir-api/v1/reports/tenant.compliance.after-hours-admin-activity?filter=night-weekend
POST /ir-api/v1/reports/tenant.compliance.after-hours-admin-activity/scan

An AI assistant reads it with the MCP tool get_report and the id tenant.compliance.after-hours-admin-activity. The client needs the Run scan grant for Compliance. See Using the API.