Query Details
# Hunt for activities where Hard Delete user was performed
----
### Defender For Endpoint
```
CloudAppEvents
| where ActionType == "Hard Delete user."
| extend DeletedUser = parse_json(RawEventData).ObjectId
| project
Timestamp,
ActionType,
Application,
InitiatingUser = AccountDisplayName,
DeletedUser
```
### Sentinel
```
CloudAppEvents
| where ActionType == "Hard Delete user."
| extend DeletedUser = parse_json(RawEventData).ObjectId
| project
TimeGenerated,
ActionType,
Application,
InitiatingUser = AccountDisplayName,
DeletedUser
```The query is searching for activities where a "Hard Delete user" action was performed. It retrieves information such as the timestamp, action type, application, initiating user, and the user that was deleted. The query is executed in both Defender for Endpoint and Sentinel.

Bert-Jan Pals
Released: February 14, 2023
Tables
Keywords
Operators