Microsoft Entra ID (formerly Azure AD) Audit Logs.directory Audit API

The auditLogs.directoryAudit API from Microsoft Entra ID (formerly Azure AD) — 3 operation(s) for auditlogs.directoryaudit.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /auditLogs/directoryAudits List directory audit logs · List directoryAudits #
Ask an LLM
“Who created or changed a user, group or app in my Entra tenant recently?”
“Can I filter directory audit logs by category or operation type?”
Tell an agent
List directory audit logs.
Show directory audit logs matching {filter}.
POST /auditLogs/directoryAudits Create a directory audit log entry · Create new navigation property to directoryAudits for auditLogs #
Ask an LLM
“Can I create a custom directory audit log entry for testing?”
“What fields are required to add a directory audit log entry?”
Tell an agent
Create a directory audit log entry with activity {activity} and result {result}.
Add a directory audit log entry for a {category} operation.
GET /auditLogs/directoryAudits/{directoryAudit-id} Get a directory audit log entry · Get directoryAudit #
Ask an LLM
“What happened in a specific directory audit log entry?”
“Can I read one directory audit log by its id?”
Tell an agent
Get directory audit log {audit}.
Show the details of directory audit {audit}.
PATCH /auditLogs/directoryAudits/{directoryAudit-id} Update a directory audit log entry · Update the navigation property directoryAudits in auditLogs #
Ask an LLM
“Can I change the result or reason on an existing directory audit log entry?”
“Is it possible to edit a directory audit log entry?”
Tell an agent
Set the result of directory audit {audit} to {result}.
Update directory audit {audit} with reason {reason}.
DELETE /auditLogs/directoryAudits/{directoryAudit-id} Delete a directory audit log entry · Delete navigation property directoryAudits for auditLogs #
Ask an LLM
“Can I delete a directory audit log entry?”
“Is it possible to remove a single directory audit log entry by id?”
Tell an agent destructive · confirm first
Delete directory audit log {audit}.
Remove the directory audit entry {audit}.
GET /auditLogs/directoryAudits/$count Count directory audit logs · Get the number of the resource #
Ask an LLM
“How many directory audit log entries exist?”
“Can I count directory audit logs matching a filter?”
Tell an agent
Count directory audit logs.
Count directory audit logs matching {filter}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/azure-ad:azure-ad-auditlogs-directoryaudit-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-ad-auditlogs-directoryaudit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Audit…
  description: This OData service is located at https://graph.microsoft.com/v1.0
  version: v1.0
  x-ms-generated-by:
    toolName: Microsoft.OpenApi.OData
    toolVersion: 0.0.0.0
servers:
- url: https://graph.microsoft.com/v1.0
tags:


# --- truncated at 32 KB (162 KB total) ---
# Full source: https://artifacts.apis.io/azure-ad/openapi/azure-ad-auditlogs-directoryaudit-api-openapi.yml