Microsoft Graph Directory Roles.directory Object API

The directoryRoles.directoryObject API from Microsoft Graph — 22 operation(s) for directoryroles.directoryobject.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 24

GET /directoryRoles/{directoryRole-id}/members List members of a directory role #
DELETE /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/$ref Remove directory role member #
GET /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/graph.application Get the item of type microsoft.graph.directoryObject as… #
GET /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/graph.device Get the item of type microsoft.graph.directoryObject as microsoft.graph.device #
GET /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/graph.orgContact Get the item of type microsoft.graph.directoryObject as… #
GET /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /directoryRoles/{directoryRole-id}/members/{directoryObject-id}/graph.user Get the item of type microsoft.graph.directoryObject as microsoft.graph.user #
GET /directoryRoles/{directoryRole-id}/members/$count Get the number of the resource #
GET /directoryRoles/{directoryRole-id}/members/$ref List members of a directory role #
POST /directoryRoles/{directoryRole-id}/members/$ref Add directory role member #
DELETE /directoryRoles/{directoryRole-id}/members/$ref Remove directory role member #
GET /directoryRoles/{directoryRole-id}/members/graph.application Get the items of type microsoft.graph.application in the… #
GET /directoryRoles/{directoryRole-id}/members/graph.application/$count Get the number of the resource #
GET /directoryRoles/{directoryRole-id}/members/graph.device Get the items of type microsoft.graph.device in the… #
GET /directoryRoles/{directoryRole-id}/members/graph.device/$count Get the number of the resource #
GET /directoryRoles/{directoryRole-id}/members/graph.group Get the items of type microsoft.graph.group in the… #
GET /directoryRoles/{directoryRole-id}/members/graph.group/$count Get the number of the resource #
GET /directoryRoles/{directoryRole-id}/members/graph.orgContact Get the items of type microsoft.graph.orgContact in the… #
GET /directoryRoles/{directoryRole-id}/members/graph.orgContact/$count Get the number of the resource #
GET /directoryRoles/{directoryRole-id}/members/graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /directoryRoles/{directoryRole-id}/members/graph.servicePrincipal/$count Get the number of the resource #
GET /directoryRoles/{directoryRole-id}/members/graph.user Get the items of type microsoft.graph.user in the… #
GET /directoryRoles/{directoryRole-id}/members/graph.user/$count Get the number of the resource #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/admin?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreementacceptance?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamsapp?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/applicationtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodspolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/certificatebasedauthconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/chat?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/communications-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/complianceapioverview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-externalconnection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contract?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/copilot-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/datapolicyoperation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-apps-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-device-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/device?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/directory?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domaindnsrecord?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domain?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/education-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/employee-experience-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-external?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/filter-query-parameter
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/grouplifecyclepolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsetting?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsettingtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/identitycontainer?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/informationprotection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/oauth2permissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/organization?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/resourcespecificpermissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/place?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/print?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/privacy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/rolemanagement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/schemaextension?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/scopedrolemembership?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/search-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/serviceprincipal?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/shares?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/solutions-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/filestorage?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscribedsku?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamwork?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/tenantrelationship?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/auth/auth-concepts
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/workplace?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sitepage?view=graph-rest-1.0

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-agreement-acceptance-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teams-app-definition-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teams-app-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teamwork-bot-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-directory-object-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-user-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-app-role-assignment-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teamwork-user-identity-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-item-body-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-key-value-pair-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-chat-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-chat-message-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-chat-message-hosted-content-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-chat-message-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-conversation-member-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-pinned-chat-message-info-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-resource-specific-permission-grant-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teams-app-installation-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teams-app-permission-set-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-teams-tab-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-presence-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-online-meeting-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-call-transcript-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-call-recording-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-attendance-record-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-meeting-attendance-report-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-meeting-participants-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-presence-status-message-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-group-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-on-premises-sync-behavior-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-managed-app-policy-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-managed-app-registration-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-managed-app-operation-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-managed-device-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-category-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-management-troubleshooting-event-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-windows-protection-state-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-windows-device-malware-state-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-log-collection-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-configuration-state-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-compliance-policy-state-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-cloud-pc-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-device-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-extension-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-scoped-role-membership-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-drive-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-base-collection-pagination-count-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-key-credential-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-password-credential-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-extension-property-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-application-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-federated-identity-credential-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-home-realm-discovery-policy-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-attribute-definition-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-synchronization-template-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-synchronization-job-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-directory-definition-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-synchronization-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-service-principal-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-endpoint-schema.json
📊
JSONSchema
https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-org-contact-schema.json

Other Resources

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-graph:microsoft-graph-directoryroles-directoryobject-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-graph-directoryroles-directoryobject-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OData Service for namespace microsoft.graph Directory…
  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 (1264 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-graph/openapi/microsoft-graph-directoryroles-directoryobject-api-openapi.yml