Audit activity history for group assignments in Privileged Identity Management
In brief
The documentation adds guidance on correlating audit events across asynchronous group membership and ownership activation or deactivation flows. It explains when CorrelationId values can differ, how to use roleAssignmentRequestId, and provides Log Analytics queries.
What Entra admins need to know
Administrators can use the documented queries and request ID to investigate complete PIM activation/deactivation cycles more reliably.
This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Audit activity history for group assignments in Privileged Identity Management
- Filter the history using a predefined date or custom range.
Correlate events related to the same activation cycle
CorrelationId is generally used to correlate audit log events related to one request. With PIM, multiple asynchronously processed operations can be part of one activation/deactivation cycle. As a result, some events related to the same activation/deactivation cycle will have different CorrelationIds.
Correlate activation events
During group membership/ownership activation, the following operations might be processed asynchronously, resulting in multiple CorrelationIds being generated:
Scheduled activation: Eligible users can schedule group membership/ownership activation for a future time. PIM tracks the request and automatically creates the group membership or ownership assignment at the scheduled time without further user input. This asynchronous operation generates a new
CorrelationIdat activation, which might differ from the original request'sCorrelationId. This makes correlating the request and activation byCorrelationIddifficult.Approval-gated activation: When PIM policy requires approval, an eligible user creates an activation request, and a designated approver approves it. PIM then assigns group membership or ownership immediately or at the user's scheduled start time. Because this flow is asynchronous, the
CorrelationIdmight differ across stages.In rare cases,
CorrelationIdmight change during the group membership/ownership activation flow due to the way requests are processed between systems.
Use roleAssignmentRequestId to correlate events related to one activation request in these scenarios. roleAssignmentRequestId remains the same during the asynchronous processing of operations such as scheduled activation or approval.
Use the following example Log Analytics query to get audit log entries related to group membership/ownership activation:
AuditLogs
| where OperationName has "Add member to role"
Use the output of this query to get the roleAssignmentRequestId for the event you need to analyze.
Use the following example Log Analytics query to get audit log entries related to the same group membership/ownership activation:
let roleAssignmentRequestId = "{roleAssignmentRequestId}";
AuditLogs
| where AdditionalDetails has roleAssignmentRequestId
Correlate deactivation events
CorrelationId logged during the deactivation process depends on how deactivation was triggered:
- When deactivation is triggered automatically based on the expiration of an activated group membership or ownership assignment,
CorrelationIdof deactivation events matches the latestCorrelationIdused during the activation. - When deactivation is triggered by the assignee (user selected Deactivate on the portal),
CorrelationIdwill be different from the one used in the activation flow.
In both cases, roleAssignmentRequestId of the original activation request is logged under Additional details for audit log events of deactivation.
Use the following example Log Analytics query to get audit log entries related to the full activation/deactivation cycle:
let roleAssignmentRequestId = "{roleAssignmentRequestId}";
let relatedCorrelationIds = AuditLogs
| where AdditionalDetails has roleAssignmentRequestId
| summarize makeset(CorrelationId);
AuditLogs
| where AdditionalDetails has roleAssignmentRequestId
or CorrelationId in (relatedCorrelationIds)
Next steps
@@ -2,9 +2,10 @@ title: Audit activity history for group assignments in Privileged Identity Management description: View activity and audit activity history for group assignments in Privileged Identity Management (PIM). ms.topic: how-to-ms.date: 04/23/2026+ms.date: 11/25/2026 ms.reviewer: shaunliu-ms.custom: sfi-image-nochange+ai-usage: ai-assisted+ms.custom: sfi-image-nochange, msecd-doc-authoring-1018 #Customer Intent: As an administrator, I want to view audit logs and activity history for PIM group assignments to monitor access changes and maintain compliance. --- # Audit activity history for group assignments in Privileged Identity Management@@ -50,6 +51,60 @@ Follow these steps to view the audit history for groups in Privileged Identity M 1. Filter the history using a predefined date or custom range. +## Correlate events related to the same activation cycle++`CorrelationId` is generally used to correlate audit log events related to one request. With PIM, multiple asynchronously processed operations can be part of one activation/deactivation cycle. As a result, some events related to the same activation/deactivation cycle will have different `CorrelationId`s.++### Correlate activation events++During group membership/ownership activation, the following operations might be processed asynchronously, resulting in multiple `CorrelationId`s being generated:++- **Scheduled activation**: Eligible users can schedule group membership/ownership activation for a future time. PIM tracks the request and automatically creates the group membership or ownership assignment at the scheduled time without further user input. This asynchronous operation generates a new `CorrelationId` at activation, which might differ from the original request's `CorrelationId`. This makes correlating the request and activation by `CorrelationId` difficult.++- **Approval-gated activation**: When PIM policy requires approval, an eligible user creates an activation request, and a designated approver approves it. PIM then assigns group membership or ownership immediately or at the user's scheduled start time. Because this flow is asynchronous, the `CorrelationId` might differ across stages.++- In rare cases, `CorrelationId` might change during the group membership/ownership activation flow due to the way requests are processed between systems.++Use `roleAssignmentRequestId` to correlate events related to one activation request in these scenarios. `roleAssignmentRequestId` remains the same during the asynchronous processing of operations such as scheduled activation or approval.++Use the following example Log Analytics query to get audit log entries related to group membership/ownership activation:++```Kusto+AuditLogs+| where OperationName has "Add member to role"+```++Use the output of this query to get the `roleAssignmentRequestId` for the event you need to analyze.++Use the following example Log Analytics query to get audit log entries related to the same group membership/ownership activation:++```Kusto+let roleAssignmentRequestId = "{roleAssignmentRequestId}";+AuditLogs+| where AdditionalDetails has roleAssignmentRequestId+```++### Correlate deactivation events++`CorrelationId` logged during the deactivation process depends on how deactivation was triggered:++- When deactivation is triggered automatically based on the expiration of an activated group membership or ownership assignment, `CorrelationId` of deactivation events matches the latest `CorrelationId` used during the activation.+- When deactivation is triggered by the assignee (user selected **Deactivate** on the portal), `CorrelationId` will be different from the one used in the activation flow.++In both cases, `roleAssignmentRequestId` of the original activation request is logged under **Additional details** for audit log events of deactivation.++Use the following example Log Analytics query to get audit log entries related to the full activation/deactivation cycle:++```Kusto+let roleAssignmentRequestId = "{roleAssignmentRequestId}";+let relatedCorrelationIds = AuditLogs+ | where AdditionalDetails has roleAssignmentRequestId+ | summarize makeset(CorrelationId);+AuditLogs+| where AdditionalDetails has roleAssignmentRequestId+ or CorrelationId in (relatedCorrelationIds)+```+ ## Next steps - [Assign eligibility for a group in Privileged Identity Management](groups-assign-member-owner.md) 