MicrosoftGraphActivityLogs User Enrichment
Description
This query enriches the MicrosoftGraphActivityLogs with userinformation from the IdentityInfo table to get more context in the results.
Query · kql
MicrosoftGraphActivityLogs
| where isnotempty(UserId)
| lookup kind=leftouter (IdentityInfo
| where TimeGenerated > ago(30d)
| summarize arg_max(TimeGenerated, *) by AccountObjectId
| project AccountObjectId, AccountDisplayName, AccountUpn)
on $left.UserId == $right.AccountObjectId
| project-reorder AccountDisplayName, AccountUpn, RequestMethod, RequestUri