You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/reports-monitoring/howto-configure-prerequisites-for-reporting-api.md
+5-11Lines changed: 5 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ To access the Azure AD reporting API, you must grant your app *Read directory da
73
73
74
74

75
75
76
-
## Access the reporting API through Microsoft Graph
76
+
## Access reports using Microsoft Graph Explorer
77
77
78
78
Once you have the app registration configured, you can run activity log queries in Microsoft Graph.
79
79
@@ -85,7 +85,7 @@ Once you have the app registration configured, you can run activity log queries
85
85
86
86

87
87
88
-
## Access the reporting API through PowerShell
88
+
## Access reports using Microsoft Graph PowerShell
89
89
90
90
To use PowerShell to access the Azure AD reporting API, you'll need to gather a few configuration settings. These settings were created as a part of the [app registration process](#register-an-azure-ad-application).
91
91
@@ -107,28 +107,22 @@ Next you'll authenticate with the configuration settings you just gathered. Open
107
107
Connect-MgGraph -ClientID YOUR_APP_ID -TenantId YOUR_TENANT_ID -CertificateName YOUR_CERT_SUBJECT ## Or -CertificateThumbprint instead of -CertificateName
108
108
```
109
109
110
-
### API endpoints and Microsoft Graph PowerShell cmdlets
111
-
112
-
To get started, use the following endpoints and cmdlets.
### Troubleshoot errors in Azure Active Directory reporting API
130
122
131
-
**500 HTTP internal server error while accessing Microsoft Graph V2 endpoint**: We don't currently support the Microsoft Graph v2 endpoint - make sure to access the activity logs using the Microsoft Graph v1 endpoint.
123
+
**500 HTTP internal server error while accessing Microsoft Graph beta endpoint**: We don't currently support the Microsoft Graph beta endpoint - make sure to access the activity logs using the Microsoft Graph v1.0 endpoint.
124
+
- GET `https://graph.microsoft.com/v1.0/auditLogs/directoryAudits`
125
+
- GET `https://graph.microsoft.com/v1.0/auditLogs/signIns`
132
126
133
127
**Error: Neither tenant is B2C or tenant doesn't have premium license**: Accessing sign-in reports requires an Azure Active Directory premium 1 (P1) license. If you see this error message while accessing sign-ins, make sure that your tenant is licensed with an Azure AD P1 license.
0 commit comments