To get forensic data related to incidents or alerts with Graph API, you can use the security/alerts
endpoint and include the $expand
query parameter to include additional information about the alert. The response will include the policy name, rule matched, and action status. Here's an example request:
GET https://graph.microsoft.com/v1.0/security/alerts?$expand=incidentStates($expand=additionalData)
The additionalData
property in the incidentStates
object will contain the forensic data you're looking for. Note that this endpoint will only return alerts that have not been resolved. To get resolved alerts, you can use the security/alerts?$filter=status eq 'resolved'
endpoint.
References: