Microsoft Entra Audit Logs.directory Audit API

The auditLogs.directoryAudit API from Microsoft Entra — 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 changed a user's password in my Entra tenant?”
“Can I filter directory audit logs by category or operation type?”
Tell an agent
List directory audit logs matching {filter}.
Show the first {top} directory audit entries.
POST /auditLogs/directoryAudits Create a directory audit log entry · Create new navigation property to directoryAudits for auditLogs #
Ask an LLM
“Can I add a fake audit log entry for testing?”
“What fields does a directory audit log entry need?”
Tell an agent
Create a directory audit log entry for {activityDisplayName} with result {result}.
Log a {operationType} of {activityDisplayName} in category {category}.
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 see the target resources of one audit log item?”
Tell an agent
Get directory audit log {audit}.
Show the category and result of audit log {audit}.
PATCH /auditLogs/directoryAudits/{directoryAudit-id} Update a directory audit log entry · Update the navigation property directoryAudits in auditLogs #
Ask an LLM
“Can I correct a directory audit log entry after it was logged?”
“How do I change the result of an audit log item?”
Tell an agent
Set the result of directory audit {audit} to {result}.
Update the target resources of audit log {audit} to {resources}.
DELETE /auditLogs/directoryAudits/{directoryAudit-id} Delete a directory audit log entry · Delete navigation property directoryAudits for auditLogs #
Ask an LLM
“Can I remove a directory audit log entry?”
“Is deleting a directory audit log item permanent?”
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 matching {filter}.
Tell me how many directory audit entries there are.

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/microsoft-entra:microsoft-entra-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

microsoft-entra-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/microsoft-entra/openapi/microsoft-entra-auditlogs-directoryaudit-api-openapi.yml