Easy way to access Azure AD reports
C# PowerShell F# Batchfile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
nuGet
src
tools/NuGet
.gitattributes
.gitignore
LICENSE
README.md
build.bat
build.fsx

README.md

Azure AD Reporting Api

Azure graph API wrapper for retrieving active directory reporting information.

Introduction

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.

Requirements

Active Directory application and service principal - [details](https://azure.microsoft.com/en-us/documentation/articles/resource-group-create-service-principal-portal/

Samples

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);