Query Details
// M365 Copilot Chat SafeLink Monitoring // https://admin.microsoft.com/AdminPortal/home?#/MessageCenter/:/messages/MC1013453 let M365CopilotChatURL = CloudAppEvents | where Timestamp > ago(1h) | where ActionType == @"CopilotInteraction" | extend UserID = tostring(RawEventData.UserId) | extend CopilotData = todynamic(RawEventData.CopilotEventData) | extend CopilotAccessResources = (CopilotData.AccessedResources) | extend CopilotAppHost = tostring(CopilotData.AppHost) | extend CopilotContexts = tostring(CopilotData.Contexts) | extend CopilotType = tostring(CopilotData.Type) | extend CopilotMessageIds = tostring(CopilotData.MessageIds) | extend CopilotThreadId = tostring(CopilotData.ThreadId) | mv-expand CopilotAccessResources | where CopilotAppHost == "Bing" and isnotempty(CopilotAccessResources.SiteUrl) | project CopilotAccessResources.SiteUrl; UrlClickEvents | where Timestamp > ago(1h) | where ActionType == "ClickBlocked" | where Url has_any(M365CopilotChatURL)
This query is designed to monitor and analyze interactions with the Microsoft 365 Copilot feature, specifically focusing on SafeLink monitoring within the past hour. Here's a simplified breakdown:
Data Source: The query pulls data from two sources: CloudAppEvents and UrlClickEvents.
Time Frame: It looks at events that occurred within the last hour.
Copilot Interactions:
URL Monitoring:
UrlClickEvents for any "ClickBlocked" actions, indicating that a URL click was blocked.In essence, the query is used to identify and monitor any URLs accessed by Microsoft 365 Copilot interactions that were subsequently blocked by SafeLink within the last hour.

Steven Lim
Released: February 22, 2025
Tables
Keywords
Operators