An API that connects multiple Microsoft services, enabling data access and automation across platforms
How to retrieve detailed Microsoft DLP incident data via API?
Hi everyone,
I’m currently trying to retrieve detailed information about Microsoft Data Loss Prevention (DLP) incidents via API and I’m running into some limitations.
The incidents are clearly visible in the Microsoft Defender portal (e.g., DLP policy matches for Teams conversations), but they are not returned by the Defender for Endpoint API (api.security.microsoft.com). That makes sense, since these incidents originate from Microsoft Data Loss Prevention rather than MDE.
So I switched to Microsoft Graph API and started using:
GET https://graph.microsoft.com/v1.0/security/incidents
This does return the incidents, but the response is very minimal — only high-level metadata (ID, severity, status, etc.). I’m not seeing detailed DLP-specific information such as:
- Matched policy details
- Exact rule triggered
- Content match information
- Location/context (e.g., Teams message specifics)
- Evidence data
In the Defender UI, all this detail is visible, but I can’t seem to retrieve it through Graph.
Has anyone successfully extracted full DLP incident details via API?
Any guidance or real-world experience would be greatly appreciated.
Thanks!