Share via

Listen to PIM events

Abed Elheyb 85 Reputation points
2026-02-21T07:13:15.1766667+00:00

I am looking for a reliable way to receive real-time PIM events, such as:

When a new PIM request is created

When an approver approves or denies a request

I need to listen to these events as soon as they happen.

I tried using Microsoft Graph API audit logs, but there is noticeable delay in receiving new PIM changes. I also configured Azure AD diagnostic settings to send audit logs to Event Hub, but this approach still does not provide real-time updates.

I am considering creating a dedicated email address and adding it to the PIM role notification settings to capture email notifications and process them programmatically. However, this approach does not seem professional or reliable for production use.

Has anyone implemented a better solution for near real-time PIM event handling?

I would greatly appreciate any guidance or recommendations.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author

Sridevi Machavarapu 31,585 Reputation points Microsoft External Staff Moderator
2026-02-23T00:42:29.6033333+00:00

Hello Abed Elheyb,

You are correct that Microsoft Graph change notifications (subscriptions/webhooks) do not currently support Privileged Identity Management (PIM), so this option cannot be used to listen for PIM events.

PIM activities such as role activation requests, approvals, and denials are captured in Microsoft Entra Audit Logs under the RoleManagement category. Both Microsoft Graph (directoryAudits) and Diagnostic Settings with Event Hub access these events from the same backend logging system. Because of this, delays like the 8–10 minutes you observed can occur, and delivery within 1–2 minutes is not guaranteed.

PIM also sends email notifications for these events, but they are designed for awareness rather than automation.

As noted in the documentation, most email notifications arrive within 3 to 10 minutes, and in some cases can take up to 15 minutes, so they are not suitable for real-time event processing.

Reference: https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-email-notifications
User's image

Currently, there is no native webhook, Event Grid integration, or subscription-based mechanism available for real-time PIM event notifications.

If this capability is important for your use case, you may consider submitting a feature request through the Microsoft Feedback Portal: https://feedback.azure.com/d365community

Hope this helps! Please let me know if you have any further questions.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.