Microsoft Entra ID (formerly Azure AD) Directory Roles.directory Role.Actions API

The directoryRoles.directoryRole.Actions API from Microsoft Entra ID (formerly Azure AD) — 16 operation(s) for directoryroles.directoryrole.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 /directoryRoles/{directoryRole-id}/microsoft.graph.checkMemberGroups Check a directory role's membership in given groups · Invoke action checkMemberGroups #
Ask an LLM
“Which of a list of groups is this directory role a member of?”
“Can I check a directory role against specific group IDs rather than listing all its groups?”
Tell an agent
Check which of groups {group_ids} directory role {role} belongs to.
Test group membership of role {role} against {group_ids}.
POST /directoryRoles/{directoryRole-id}/microsoft.graph.checkMemberObjects Check a directory role's membership in given objects · Invoke action checkMemberObjects #
Ask an LLM
“Is this directory role a member of any of these groups, administrative units or roles?”
“Can I check a role against a mixed list of object IDs, not just groups?”
Tell an agent
Check which of objects {ids} directory role {role} is a member of.
Test role {role} for membership in these directory objects: {ids}.
POST /directoryRoles/{directoryRole-id}/microsoft.graph.getMemberGroups Get all groups a directory role belongs to · Invoke action getMemberGroups #
Ask an LLM
“What are all the group IDs a directory role is a member of?”
“Can I limit a directory role's group membership lookup to security-enabled groups?”
Tell an agent
Get every group ID that directory role {role} belongs to.
List only security-enabled group memberships of role {role} ({security_only}).
POST /directoryRoles/{directoryRole-id}/microsoft.graph.getMemberObjects Get all groups, units and roles a directory role belongs to · Invoke action getMemberObjects #
Ask an LLM
“Which groups, administrative units and directory roles is a given directory role a member of?”
“Can I get a directory role's memberships across object types, not just groups?”
Tell an agent
Get all group, administrative unit and role IDs directory role {role} is a member of.
Return every membership object of role {role}, security-enabled only set to {security_only}.
POST /directoryRoles/{directoryRole-id}/microsoft.graph.restore Restore a recently deleted directory object · Invoke action restore #
Ask an LLM
“How do I bring back a directory object that was recently deleted?”
“Can I restore something from deleted items using this directory role path?”
Tell an agent
Restore deleted directory object {role}.
Recover {role} from the directory's deleted items.
POST /directoryRoles/microsoft.graph.getAvailableExtensionProperties List registered directory extension properties · Invoke action getAvailableExtensionProperties #
Ask an LLM
“Which directory extension definitions are registered in my 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 my tenant.
Show extension properties where synced-from-on-premises is {synced}.
POST /directoryRoles/microsoft.graph.getByIds Fetch directory objects by a list of IDs · Invoke action getByIds #
Ask an LLM
“How do I resolve a batch of object IDs to the directory objects they belong to?”
“Can I restrict an ID lookup to certain object types like users or groups?”
Tell an agent
Get the directory objects for IDs {ids}.
Resolve IDs {ids} limited to types {types}.
POST /directoryRoles/microsoft.graph.validateProperties Check a group name against naming policy · Invoke action validateProperties #
Ask an LLM
“Will a Microsoft 365 group display name comply with our naming policy before I create it?”
“Can I validate a mail nickname against blocked words on behalf of a user?”
Tell an agent
Validate group display name {display_name} with mail nickname {nickname}.
Check {display_name} against naming policy on behalf of user {user}.
POST /directoryRoles/{directoryRole-id}/checkMemberGroups Invoke action checkMemberGroups #
POST /directoryRoles/{directoryRole-id}/checkMemberObjects Invoke action checkMemberObjects #
POST /directoryRoles/{directoryRole-id}/getMemberGroups Invoke action getMemberGroups #
POST /directoryRoles/{directoryRole-id}/getMemberObjects Invoke action getMemberObjects #
POST /directoryRoles/{directoryRole-id}/restore Invoke action restore #
POST /directoryRoles/getAvailableExtensionProperties Invoke action getAvailableExtensionProperties #
POST /directoryRoles/getByIds Invoke action getByIds #
POST /directoryRoles/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-directoryroles-directoryrole-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-directoryroles-directoryrole-actions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Identity.DirectoryManagement Directory Roles.directory…
  version: v1.0
servers:
- url: https://graph.microsoft.com/v1.0/
  description: Core
security:
- azureaadv2: []
tags:


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