Query Details
AuditLogs //Removal of roles after Granular admin relationship has ended | where OperationName == @"Remove member from role" | extend App = InitiatedBy.app.displayName | where App == 'Partner Customer Delegated Admin Offline Processor' | extend PartnerID = AdditionalDetails[0].value
This KQL (Kusto Query Language) query is designed to analyze audit logs to identify instances where a member was removed from a role after a granular admin relationship has ended. Here's a simple breakdown of what the query does:
Data Source: It starts by looking at the AuditLogs, which contain records of various operations performed within the system.
Filter by Operation: The query filters these logs to find entries where the operation performed is "Remove member from role". This means it is specifically interested in actions where a user or entity was removed from a specific role.
Identify the Initiating Application: It extends the data to include the name of the application that initiated the operation, labeled as App.
Filter by Specific Application: It further narrows down the results to only include those operations initiated by an application named 'Partner Customer Delegated Admin Offline Processor'. This suggests that the query is focused on role removals initiated by this specific application.
Extract Partner ID: Finally, it extends the data to include the PartnerID, which is extracted from the first value in the AdditionalDetails array. This likely represents the identifier of the partner associated with the operation.
In summary, this query is used to track and analyze role removal actions specifically initiated by the 'Partner Customer Delegated Admin Offline Processor' application, and it extracts the partner ID involved in these actions for further analysis or reporting.

Jay Kerai
Released: June 18, 2026
Tables
Keywords
Operators