Microsoft Entra ID Governance
Governance

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

  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 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 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:

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, 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:

let roleAssignmentRequestId = "{roleAssignmentRequestId}";
let relatedCorrelationIds = AuditLogs
   | where AdditionalDetails has roleAssignmentRequestId
   | summarize makeset(CorrelationId);
AuditLogs
| where AdditionalDetails has roleAssignmentRequestId
  or CorrelationId in (relatedCorrelationIds)

Next steps

Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…