Microsoft Entra ID (formerly Azure AD) Directory Objects.directory Object.Actions API

The directoryObjects.directoryObject.Actions API from Microsoft Entra ID (formerly Azure AD) — 16 operation(s) for directoryobjects.directoryobject.actions.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 16

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

POST /directoryObjects/{directoryObject-id}/microsoft.graph.checkMemberGroups Check which of given groups an object belongs to · Invoke action checkMemberGroups #
Ask an LLM
“How do I check if a user or device is a member of any groups in a list I have?”
“Can I test group membership against specific group IDs in one call?”
Tell an agent
Check which of groups {groupIds} directory object {object} is a member of.
Tell me whether {object} belongs to any of the groups {groupIds}.
POST /directoryObjects/{directoryObject-id}/microsoft.graph.checkMemberObjects Check membership in groups, roles or admin units · Invoke action checkMemberObjects #
Ask an LLM
“Can I check an object's membership against a mixed list of groups, directory roles and administrative units?”
“Which of these object IDs does a directory object actually belong to?”
Tell an agent
Check which of the objects {ids} directory object {object} is a member of.
Test {object} for membership in the groups, roles or units {ids}.
POST /directoryObjects/{directoryObject-id}/microsoft.graph.getMemberGroups Get all group IDs an object is a member of · Invoke action getMemberGroups #
Ask an LLM
“What are all the group IDs a user, device or service principal belongs to?”
“Can I limit the returned group IDs to security-enabled groups only?”
Tell an agent
Get all group IDs directory object {object} is a member of.
Return group IDs for {object}, security-enabled only set to {securityOnly}.
POST /directoryObjects/{directoryObject-id}/microsoft.graph.getMemberObjects Get IDs of groups, roles and admin units an object is in · Invoke action getMemberObjects #
Ask an LLM
“Which groups, administrative units and directory roles does this object belong to?”
“How do I get every membership ID for a user, including directory roles?”
Tell an agent
Get all group, admin unit and directory role IDs for object {object}.
List membership object IDs for {object}, security-enabled groups only set to {securityOnly}.
POST /directoryObjects/{directoryObject-id}/microsoft.graph.restore Restore a recently deleted directory object · Invoke action restore #
Ask an LLM
“How do I bring back an app, group or user that was deleted recently?”
“Can I recover a directory object from deleted items?”
Tell an agent
Restore deleted directory object {object}.
Recover {object} from deleted items.
POST /directoryObjects/microsoft.graph.getAvailableExtensionProperties List all directory extension definitions in the tenant · Invoke action getAvailableExtensionProperties #
Ask an LLM
“Which directory extensions are registered in our tenant, including from multitenant apps?”
“Can I see only the extension properties synced from on-premises?”
Tell an agent
List all directory extension properties available in the tenant.
Show available extension properties with synced-from-on-premises set to {synced}.
POST /directoryObjects/microsoft.graph.getByIds Get multiple directory objects by their IDs · Invoke action getByIds #
Ask an LLM
“How do I resolve a batch of object IDs to users, groups and devices in one request?”
“Can I restrict a bulk ID lookup to certain object types?”
Tell an agent
Get the directory objects with IDs {ids}.
Resolve IDs {ids} limited to object types {types}.
POST /directoryObjects/microsoft.graph.validateProperties Validate a group name against naming policy · Invoke action validateProperties #
Ask an LLM
“Will a Microsoft 365 group display name pass our naming policy before I create it?”
“Can I check if a mail nickname contains blocked words?”
Tell an agent
Validate group display name {displayName} and mail nickname {mailNickname} against naming policy.
Check whether display name {displayName} complies with naming policy on behalf of user {user}.
POST /directoryObjects/{directoryObject-id}/checkMemberGroups Invoke action checkMemberGroups #
POST /directoryObjects/{directoryObject-id}/checkMemberObjects Invoke action checkMemberObjects #
POST /directoryObjects/{directoryObject-id}/getMemberGroups Invoke action getMemberGroups #
POST /directoryObjects/{directoryObject-id}/getMemberObjects Invoke action getMemberObjects #
POST /directoryObjects/{directoryObject-id}/restore Invoke action restore #
POST /directoryObjects/getAvailableExtensionProperties Invoke action getAvailableExtensionProperties #
POST /directoryObjects/getByIds Invoke action getByIds #
POST /directoryObjects/validateProperties Invoke action validateProperties #

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-directoryobjects-directoryobject-actions-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-directoryobjects-directoryobject-actions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DirectoryObjects Directory Objects.directory Object.Actions…
  version: v1.0
servers:
- url: https://graph.microsoft.com/v1.0/
  description: Core
security:
- azureaadv2: []
tags:


# --- truncated at 32 KB (37 KB total) ---
# Full source: https://artifacts.apis.io/azure-ad/openapi/azure-ad-directoryobjects-directoryobject-actions-api-openapi.yml