Query Details
# Power Platform - Customer Lockbox   ## Query Information ### Description This query retrieves events for enabling or disabling Power Platform Customer Lockbox. #### References - [Securely access customer data by using Customer Lockbox in Power Platform and Dynamics 365](https://learn.microsoft.com/en-us/power-platform/admin/about-lockbox) ### Author - **Alex Verboon** ## Defender XDR ```kql PowerPlatformAdminActivity | where EventOriginalType == "TenantLockboxOperation" | where EventResult == "Succeeded" | where Properties.["powerplatform.analytics.activity.name"] == "TenantLockboxOperation" | extend LockBoxEnabled = tostring(Properties.["powerplatform.analytics.resource.tenant.is_lockbox_enabled"]) | project TimeGenerated, ActorName, ActorUserId, LockBoxEnabled ``` ```kql CloudAppEvents | where ActionType == "TenantLockboxOperation" | where parse_json(tostring(RawEventData.JsonPropertiesCollection)).["powerplatform.analytics.activity.name"] == "TenantLockboxOperation" | extend LockBoxEnabled = tostring(parse_json(tostring(RawEventData.JsonPropertiesCollection)).["powerplatform.analytics.resource.tenant.is_lockbox_enabled"]) | project TimeGenerated, AccountDisplayName, LockBoxEnabled ```
This KQL query is designed to track events related to the enabling or disabling of the Customer Lockbox feature in Power Platform. Here's a simplified breakdown of what the query does:
Data Source: The query pulls data from two sources: PowerPlatformAdminActivity and CloudAppEvents.
Event Filtering:
CloudAppEvents, it parses the JSON data to filter events with the same "TenantLockboxOperation" activity name.Data Extraction:
Output:
This query is useful for administrators who want to monitor changes to the Customer Lockbox settings in their Power Platform environment, ensuring that only authorized changes are made and tracking who made those changes.

Alex Verboon
Released: April 20, 2026
Tables
Keywords
Operators