MC1505599 Microsoft Purview Audit: AuditLogQuery API generally available and Search-UnifiedAuditLog retiring
Primary service: Purview
ChangePilot summary
- Microsoft Purview Audit is getting the Microsoft Graph AuditLogQuery API for programmatic audit log access.
- Search-UnifiedAuditLog is being retired, and organizations that rely on it must move scripts, apps, and workflows to the new API.
- The new API offers better scalability, reliability, workload-level permissions, and support for exporting large audit record sets.
- Admins should identify all uses of Search-UnifiedAuditLog, register/update Microsoft Graph app permissions, and test the replacement integration before retirement.
- Organizations not using Search-UnifiedAuditLog do not need to take action for this change.
What it means for you
What admins need to do
Inventory every script, automation, report, and investigation process that uses Search-UnifiedAuditLog, then validate the Microsoft Graph AuditLogQuery API as a replacement. Register or update the application in Microsoft Graph, assign the required permissions, and test audit retrieval, throttling behavior, and output volume against your operational requirements. Coordinate a migration plan with compliance and security stakeholders so the cutover is complete before retirement.
Impact on users
Most end users will not notice this change directly. The impact is mainly on admin and compliance workflows that retrieve audit logs programmatically. If your organization migrates successfully, everyday user experience should remain unchanged.
If you miss it
If migration is missed, any automation, reporting, or investigation process that depends on Search-UnifiedAuditLog will stop working when the cmdlet is retired. That could interrupt audit retrieval, delay compliance and security investigations, and create operational risk for teams that rely on scripted audit searches. IT may also need to urgently rework affected tools under time pressure.
- Admin controls available
- Yes
History
Recorded changes
No changes recorded since ChangePilot first saw this post.
Microsoft message
[What and why]
The Microsoft Graph AuditLogQuery API is generally available for programmatic access to Microsoft Purview Audit activity logs. We are also announcing the planned retirement of the Search-UnifiedAuditLog PowerShell cmdlet on October 15, 2027.
The AuditLogQuery API provides improved scalability and reliability, more granular workload-level permissions, and support for exporting up to 1 million audit records per query. As audit data volumes and automation scenarios have grown, Search-UnifiedAuditLog has reached scalability limitations that can affect reliability and performance for large-volume searches. Future investments and enhancements for audit search will focus on the AuditLogQuery API.
[Rollout schedule]
Microsoft Graph AuditLogQuery API general availability (Worldwide): Beginning in early October 2026
Search-UnifiedAuditLog retirement:
- Search-UnifiedAuditLog will continue to function unchanged until October 15, 2027.
- On October 15, 2027, Search-UnifiedAuditLog will be retired and will no longer provide access to the audit log.
- Organizations using Search-UnifiedAuditLog should migrate to the Microsoft Graph AuditLogQuery API before October 15, 2027.
[Impact on your organization]
Who is affected
- Organizations that use Search-UnifiedAuditLog for audit data retrieval, reporting, investigations, compliance workflows, or automation are affected.
- Organizations that do not use Search-UnifiedAuditLog are not required to take action for this retirement.
Platforms and services
- Microsoft Purview Audit
- Microsoft Graph AuditLogQuery API
- Exchange PowerShell Search-UnifiedAuditLog cmdlet
What will happen
- Admins with the required permissions will be able to programmatically access audit logs through the Microsoft Graph AuditLogQuery API.
- Existing PowerShell scripts, applications, and automation workflows that call Search-UnifiedAuditLog will need to be updated to use the AuditLogQuery API.
- Search-UnifiedAuditLog will continue to function unchanged until October 15, 2027.
- On October 15, 2027, Search-UnifiedAuditLog will no longer provide access to the audit log.
- There is no tenant setting to prevent the retirement.
- Organizations that do not complete migration before October 15, 2027, may experience disruptions to audit retrieval processes that depend on Search-UnifiedAuditLog.
- Future investments and enhancements for audit search will focus on the AuditLogQuery API rather than Search-UnifiedAuditLog.
- The AuditLogQuery API supports exporting up to 1 million audit records per query.
- The AuditLogQuery API uses tenant-level throttling limits. Each tenant has a baseline of 200 search submissions per rolling 24-hour period and can have up to 50 searches queued or running at one time. Larger tenants may receive higher allocations based on eligible license counts.
- When a limit is reached, the API returns an HTTP 429 Too Many Requests response with retry guidance.
[Action required and recommendations]
- If your organization uses Search-UnifiedAuditLog, begin migration planning and complete the migration before October 15, 2027.
- Identify scripts, applications, automation workflows, and operational processes that currently use Search-UnifiedAuditLog.
- Evaluate the Microsoft Graph AuditLogQuery API and validate that it meets your audit retrieval requirements.
- Register your application with Microsoft Graph and add the required Microsoft Graph permissions.
- Update and test existing integrations to use the AuditLogQuery API.
- Complete migration before October 15, 2027, to avoid service disruption.
No action is required if your organization does not use Search-UnifiedAuditLog.
Learn more
- auditLogQuery resource type - Microsoft Graph v1.0 | Microsoft Learn
- Examples - List auditLogQueries - Microsoft Graph | Microsoft Learn
- Get started with auditing solutions | Microsoft Learn
- Learn about auditing solutions in Microsoft Purview | Microsoft Learn
- Microsoft Graph service-specific throttling limits - Microsoft Graph | Microsoft Learn
- Permissions - List auditLogQueries - Microsoft Graph | Microsoft Learn
- Search-UnifiedAuditLog (ExchangePowerShell) | Microsoft Learn
- Security audit log query service limits - Microsoft Graph service-specific throttling limits - Microsoft Graph | Microsoft Learn
- Use the Microsoft Graph API - Microsoft Graph | Microsoft Learn
[Compliance considerations]
| Question | Answer |
| Does the change modify, interrupt, or disable Audit logging capabilities? | Search-UnifiedAuditLog will no longer provide access to the Audit log effective October 15, 2027. |
| Does the change alter how admins can monitor, report on, or demonstrate compliance activities? | Programmatic retrieval of Microsoft Purview Audit activity logs is moving from Search-UnifiedAuditLog to the Microsoft Graph AuditLogQuery API for organizations using the retiring cmdlet. |
| Does the change include an admin control? | Access to the AuditLogQuery API requires applicable Microsoft Graph permissions. The retirement itself cannot be prevented through a tenant setting. The source does not state that the change can be controlled through Entra ID group membership. |
More information
- learn.microsoft.com/en-us/graph/api/resources/security-auditlogquery?view=graph-rest-1.0
- learn.microsoft.com/graph/api/security-auditcoreroot-list-auditlogqueries?view=graph-rest-1.0&
- learn.microsoft.com/en-us/purview/audit-get-started
- learn.microsoft.com/en-us/purview/audit-solutions-overview
- learn.microsoft.com/en-us/graph/throttling-limits#security-audit-log-query-service-limit
- learn.microsoft.com/graph/api/security-auditcoreroot-list-auditlogqueries?view=graph-rest-1.0&
- learn.microsoft.com/en-us/powershell/module/exchangepowershell/search-unifiedauditlog?view=exchange-ps
- learn.microsoft.com/graph/throttling-limits#security-audit-log-query-service-limits
- learn.microsoft.com/en-us/graph/use-the-api
Details
In weekly changes
Services
- Exchange
- Graph
- Purview
Category
- Plan for change
Microsoft tags
- Admin Action
- New Feature
- Retirement
- User Adoption