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

The directoryRoleTemplates.directoryRoleTemplate.Actions API from Microsoft Entra ID (formerly Azure AD) — 16 operation(s) for directoryroletemplates.directoryroletemplate.actions.

GitHub OpenAPI

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 /directoryRoleTemplates/{directoryRoleTemplate-id}/microsoft.graph.checkMemberGroups Check a role template's membership in given groups · Invoke action checkMemberGroups #
Ask an LLM
“Which of a list of group IDs is a directory role template a member of?”
“Can I test membership of a role template against specific groups?”
Tell an agent
Check which of groups {groupIds} directory role template {template} belongs to.
Return the groups from {groupIds} that role template {template} is a member of.
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/microsoft.graph.checkMemberObjects Check a role template's membership in given objects · Invoke action checkMemberObjects #
Ask an LLM
“Is a directory role template a member of any of these groups, roles or administrative units?”
“Can I check membership against a mixed list of directory object IDs?”
Tell an agent
Check which of objects {ids} directory role template {template} is a member of.
Test role template {template} for membership in the directory objects {ids}.
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/microsoft.graph.getMemberGroups Get all groups a role template belongs to · Invoke action getMemberGroups #
Ask an LLM
“What groups is a directory role template a member of?”
“Can I limit the returned group IDs to security-enabled groups only?”
Tell an agent
Get every group ID that directory role template {template} is a member of.
List only security-enabled groups ({securityOnly}) for role template {template}.
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/microsoft.graph.getMemberObjects Get all groups, units and roles a template is in · Invoke action getMemberObjects #
Ask an LLM
“Which groups, administrative units and directory roles include a given role template?”
“Can I get all membership object IDs, not just groups, for a role template?”
Tell an agent
Get all group, administrative unit and role IDs that directory role template {template} belongs to.
Return member-of object IDs for role template {template}, security-enabled only set to {securityOnly}.
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/microsoft.graph.restore Restore a deleted directory object · Invoke action restore #
Ask an LLM
“How do I bring back a recently deleted directory object from deleted items?”
“Which kinds of deleted directory objects can be restored?”
Tell an agent
Restore deleted directory object {template} from deleted items.
Undelete item {template} via the role templates restore action.
POST /directoryRoleTemplates/microsoft.graph.getAvailableExtensionProperties List registered directory extension properties · Invoke action getAvailableExtensionProperties #
Ask an LLM
“What directory extension attributes 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 available directory extension properties.
Get directory extension definitions where synced from on-premises is {onPrem}.
POST /directoryRoleTemplates/microsoft.graph.getByIds Fetch directory objects by a list of IDs · Invoke action getByIds #
Ask an LLM
“Can I resolve a batch of directory object IDs to their objects in one call?”
“Is it possible to 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 /directoryRoleTemplates/microsoft.graph.validateProperties Validate a group name against naming policy · Invoke action validateProperties #
Ask an LLM
“Does a proposed Microsoft 365 group name comply with my tenant's naming policy?”
“Can I check a mail nickname for blocked words before creating a group?”
Tell an agent
Validate group display name {displayName} and mail nickname {mailNickname} against naming policy.
Check whether {displayName} is an allowed {entityType} name on behalf of user {user}.
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/checkMemberGroups Invoke action checkMemberGroups #
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/checkMemberObjects Invoke action checkMemberObjects #
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/getMemberGroups Invoke action getMemberGroups #
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/getMemberObjects Invoke action getMemberObjects #
POST /directoryRoleTemplates/{directoryRoleTemplate-id}/restore Invoke action restore #
POST /directoryRoleTemplates/getAvailableExtensionProperties Invoke action getAvailableExtensionProperties #
POST /directoryRoleTemplates/getByIds Invoke action getByIds #
POST /directoryRoleTemplates/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-directoryroletemplates-directoryroletemplate-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-directoryroletemplates-directoryroletemplate-actions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Identity.DirectoryManagement Directory Role…
  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-directoryroletemplates-directoryroletemplate-actions-api-openapi.yml