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.
At a glance
Section titled “At a glance”| Where in the app | Tenant › Compliance & Audit › After-hours Admin Actions |
| Workload | Compliance |
| Kind | Table · dashboard tile |
| Data | A 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. |
| Licence | Microsoft Purview Audit (Standard). |
| Report id (API and MCP) | tenant.compliance.after-hours-admin-activity |
Columns
Section titled “Columns”| Column | Key | Type |
|---|---|---|
| When (server time) | LocalTime | Status |
| Day | Day | Text |
| Who | UserPrincipalName | Text |
| Operation | Operation | Text |
| Workload | Workload | Text |
| Target | Target | Text |
| Client IP | ClientIp | Text |
| User type | UserType | Text |
Filters
Section titled “Filters”| Filter | Key (API) | On when the page opens |
|---|---|---|
| Only night and weekend actions | night-weekend | No |
What it needs
Section titled “What it needs”Licence: Microsoft Purview Audit (Standard).
Application permissions on the IntensiveReports app registration (all permissions):
| Permission | API | What it allows | Note |
|---|---|---|---|
AuditLogsQuery.Read.All | Microsoft Graph | Read 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
Through the API and MCP
Section titled “Through the API and MCP”GET /ir-api/v1/reports/tenant.compliance.after-hours-admin-activity?size=100GET /ir-api/v1/reports/tenant.compliance.after-hours-admin-activity?filter=night-weekendPOST /ir-api/v1/reports/tenant.compliance.after-hours-admin-activity/scanAn 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.