Is there any API to get Microsoft compliance reports?

Akash Tripathy 0 Reputation points
2024-04-30T10:24:18.7466667+00:00

I wish to retrieve the Microsoft Message encryption report and Alerts from the Microsoft Compliance program via API automation. The manual procedure I currently follow is as follows.

1.Message Encryption Report:

Screenshot 2024-04-16 at 10.03.47 AM

Link: https://compliance.microsoft.com/reports/encryptionreport

  • Select “Export” found below the graph
  • Follow prompts that appear on the right of the screen

Email of report will be send, click on link in email and report will be downloaded via browser.

  1. DPL Reports Screenshot 2024-04-16 at 10.05.05 AM

Link: https://compliance.microsoft.com/datalossprevention?viewid=dlpalerts

  • Click on “Alert Name”
  • Using the details shown on the right pane, count DLP instances for PII and PCI.
Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,116 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,266 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,222 questions
Microsoft Intune Reporting
Microsoft Intune Reporting
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Reporting: The process of giving an account of something that has been observed, heard, done, or investigated.
67 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 108K Reputation points MVP
    2024-04-30T15:32:14.91+00:00

    For the email encryption report, you can use the Get-MailDetailEncryptionReport cmdlet: https://video2.skills-academy.com/en-us/powershell/module/exchange/get-maildetailencryptionreport?view=exchange-ps

    For the DLP Alerts, use Get-MailDetailDlpPolicyReport: https://video2.skills-academy.com/en-us/powershell/module/exchange/get-maildetaildlppolicyreport?view=exchange-ps

    Do note those are specific to Exchange data only. To get all the DLP alerts across workloads, you can use the Graph API's /alerts_v2 endpoint instead: https://video2.skills-academy.com/en-us/graph/api/security-list-alerts_v2?view=graph-rest-1.0&tabs=http

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.