KQL Library / Identity
Identity
Entra ID, Active Directory, and PIM activity queries — who did what to whom, when.
-
Who Deleted An AD User
who-deleted-an-ad-user.kqlWho deleted an AD user (`SecurityEvent` EventID `4726`) over the last 90 days.
-
Who Removed A User From Group Chat
who-removed-a-user-from-group-chat.kqlTeams-related removal actions performed by a specific user in the last 7 days, from `OfficeActivity` / Unified Audit Log.
-
Whos Activating Roles Via PIM
whos-activating-roles-via-pim.kqlPIM role activations from `AuditLogs` — useful for tracking privileged-role usage.