Azure AD Reporting Api
Azure graph API wrapper for retrieving active directory reporting information.
Simple and light way solution for accessing active directory reporting information in .NET projects. Currently only implemented report auditEvents but will implement the missing reports and filters as soon as I required this functionality. This also includes the release of a Nuget Package.
Active Directory application and service principal - [details](https://azure.microsoft.com/en-us/documentation/articles/resource-group-create-service-principal-portal/
Create a client:
using AzureADReportingApi; using AzureADReportingApi.Http; using AzureADReportingApi.Models; var connection = AzureConnection.Create( "clientId", "clientSecret", "tenantDomain" ); var client = new AzureAdReportingClient(connection);
Request with default filters:
var auditEvents = client.GetAuditEvents();
Request with filter:
var auditEvents = client.GetAuditEvents(DateTime.UtcNow.AddDays(-5), DateTime.UtcNow);