Query Details
AuditLogs | where OperationName contains "self-service" | where Result == "success" | extend userPrincipalName_ = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName) | project userPrincipalName_
This query is looking at the AuditLogs table and filtering for entries where the OperationName contains "self-service" and the Result is "success". It then extends the userPrincipalName_ field by extracting it from the InitiatedBy.user JSON object and converts it to a string. Finally, it projects the userPrincipalName_ field in the output.

Rod Trent
Released: September 23, 2020
Tables
Keywords
Operators