List the external admin activities
Description
This query lists all the external admin activities in your tenant sorted from the account with the most actions performed to the one with the least actions.
Query · kql
CloudAppEvents
| where IsExternalUser == 1 and AccountType == "Admin"
| summarize
TotalActivities = count(),
ActionsPerformed = make_set(ActionType),
Applications = make_set(Application),
IPsUsed = make_set(IPAddress)
by AccountId
| sort by TotalActivities