Query Details
# Office 365 - Customer Lockbox activities in Exchange Online, SharePoint, OneDrive, Teams and Windows 365 ## Query Information ### Description The below query will show customer lockbox request related events in Exchange Online, SharePoint, OneDrive, Teams and Windows 365 | Audit record property | Description | | ----------------------| ------------| | Date | The date and time when the Customer Lockbox request was approved or denied.| | IP address | The IP address of the machine the approver used to approve or deny a request.| | User | The service account BOXServiceAccount@[customerforest].prod.outlook.com. | | Activity | Set-AccessToCustomerDataRequest; this is the auditing activity that is logged when you approve or deny a Customer Lockbox request.| | Item | The Guid of the Customer Lockbox request | #### References - [Microsoft Purview Customer Lockbox](https://learn.microsoft.com/en-us/purview/customer-lockbox-requests) ### Microsoft 365 Defender / Microsoft Sentinel ```kql OfficeActivity | where Operation contains 'Set-AccessToCustomerDataRequest' | extend UserKey startswith 'BOXServiceAccount@' | extend RequestID = tostring(parse_json(Parameters)[2].Value) | extend ApprovalDecision = tostring(parse_json(Parameters)[1].Value) | project TimeGenerated,ClientIP,UserKey,ExternalAccess,Operation, RequestID,ApprovalDecision ```
This query is designed to retrieve and display information about Customer Lockbox request activities in various Office 365 services such as Exchange Online, SharePoint, OneDrive, Teams, and Windows 365. Customer Lockbox is a feature that requires Microsoft support engineers to obtain explicit approval from a customer before accessing their data.
Here's a simple breakdown of what the query does:
OfficeActivity table, which logs various activities within Office 365 services.Set-AccessToCustomerDataRequest).BOXServiceAccount@[customerforest].prod.outlook.com.RequestID: The unique identifier for the Customer Lockbox request.ApprovalDecision: Whether the request was approved or denied.TimeGenerated: The date and time when the activity occurred.ClientIP: The IP address of the machine used to approve or deny the request.UserKey: The service account involved.ExternalAccess: Indicates if external access was involved.Operation: The type of operation performed.RequestID: The unique identifier for the request.ApprovalDecision: The decision made (approved or denied).In summary, this query helps you monitor and audit Customer Lockbox requests by showing when and how these requests were handled, including who approved or denied them and from which IP address.

Alex Verboon
Released: September 12, 2024
Tables
Keywords
Operators