Query Details
DeviceEvents
| where ActionType startswith 'Asr'
and ActionType endswith 'Audited'
| summarize Count = count(), Categories = make_set(ActionType) by DeviceName, OnPremSid=AccountSid
| join IdentityInfo on OnPremSid
| project DeviceName, FullName=strcat(GivenName, " ", Surname), JobTitle, Count, Categories
| distinct DeviceName, FullName, JobTitle, Count, tostring(Categories)
| sort by CountThis query retrieves device events where the action type starts with 'Asr' and ends with 'Audited'. It then summarizes the count and creates a set of action types for each device name and on-premises SID. The query then joins the identity information based on the on-premises SID and projects the device name, full name (concatenation of given name and surname), job title, count, and categories. It removes any duplicate entries and sorts the results by count.

C.J. May
Released: October 13, 2022
Tables
Keywords
Operators