Get started with the Azure Active Directory reporting API

Azure Active Directory provides you with a variety of reports, containing useful information for applications such as SIEM systems, audit, and business intelligence tools.

By using the Microsoft Graph API for Azure AD reports, you can gain programmatic access to the data through a set of REST-based APIs. You can call these APIs from a variety of programming languages and tools.

This article provides you with an overview of the reporting API, including ways to access it.

If you run into issues, see how to get support for Azure Active Directory.


To access the reporting API, with or without user intervention, you need to:

  1. Assign roles (Security Reader, Security Admin, Global Admin)
  2. Register an application
  3. Grant permissions
  4. Gather configuration settings

For detailed instructions, see the prerequisites to access the Azure Active Directory reporting API.

API Endpoints

The Microsoft Graph API endpoint for audit logs is and the Microsoft Graph API endpoint for sign-ins is For more information, see the audit API reference and sign-in API reference.

You can use the Identity Protection risk detections API to gain programmatic access to security detections using Microsoft Graph. For more information, see Get started with Azure Active Directory Identity Protection and Microsoft Graph.

You can also use the provisioning logs API to get programmatic access to provisioning events in your tenant.

APIs with Microsoft Graph Explorer

You can use the Microsoft Graph explorer to verify your sign-in and audit API data. Make sure to sign in to your account using both of the sign-in buttons in the Graph Explorer UI, and set AuditLog.Read.All and Directory.Read.All permissions for your tenant as shown.

Graph Explorer

Modify permissions UI

Use certificates to access the Azure AD reporting API

Use the Azure AD Reporting API with certificates if you plan to retrieve reporting data without user intervention.

For detailed instructions, see Get data using the Azure AD Reporting API with certificates.

Next steps