Pull Audit and Compliance Data via Microsoft Graph

Iron Contributor

We have been using reports and dashboards in Microsoft Compliance Center. The big issue on those is that the data is only available and limited for 30 days.


We need to pull audit/compliance data such as those we have in https://compliance.microsoft.com/:

a. Microsoft Purview --> Reports: Retention Label Usage, Sensitivity Label Usage, Retention Label Changes, Label trends over the past X days, DLP Policy Matches, DLP Incidents, DLP false positives and overrides,


b. those we have in Microsoft Purview --> Reports --> Activity Explorer but for more than 30 days, for any date range we wish to pull the data for and have a report.


I would like to know if with Microsoft Graph we can pulling this information via Graph, and then feed it into some PowerBi Dashboard.


Any help or directions if you ever had such experience, solution is appreciated.


1 Reply
Afaik there are no Graph API endpoints for any of the above. You can get (some of) the corresponding events via the Management activities API and build your own reports.