Activity reports API overview

Namespace: microsoft.graph

Azure Active Directory (Azure AD) tracks user activity and creates reports that help you understand how your users access and use Azure AD services. Use the Microsoft Graph API for Azure AD to analyze the data in these reports and to create custom solutions tailored to your organization's specific needs.

The availability of these activity reports is governed by the Azure AD data retention policies. For more information, see data retention policies.

What are Azure AD activity logs?

Azure AD provides the following types of activity reports:

  • Directory audits
  • Sign-ins

Directory audits

The directory audit report provides you with access to the history of every task performed in your tenant. The directory audit report provides you with records of system activities for compliance. Amongst others, the provided data enables you to address common scenarios such as:

  • Who granted admin group access to a directory user?
  • Which users are signing in to a recently acquired app?
  • How many passwords resets were made within the directory?


The sign-ins report helps you determine who performed the tasks reported by directory audits. The sign-ins report helps you answer questions like:

  • What is the sign in pattern of a user?
  • How many users have signed in during the last week?
  • What's the status of these sign-ins?

What can I do with audit log APIs in Microsoft Graph?

The following are popular requests for working with audit log data:

Operation URL
GET tenant user activities GET
GET tenant user sign-ins GET

What licenses do I need?

Activity reports are available for features that you've licensed. If you have a license for a specific feature, you also have access to the reports.

For example, you need an Azure AD Premium P1 license to access self-service password audit reports. To learn more, see Azure AD licensing.

reports require an Azure AD Premium license.

To learn more, see Azure AD pricing.

Next Steps