Microsoft Entra ID (formerly Azure AD) Service Principals.directory Object API

The servicePrincipals.directoryObject API from Microsoft Entra ID (formerly Azure AD) — 64 operation(s) for serviceprincipals.directoryobject.

Operations 66

GET /servicePrincipals/{servicePrincipal-id}/createdObjects servicePrincipal: List createdObjects #
GET /servicePrincipals/{servicePrincipal-id}/createdObjects/{directoryObject-id} Get createdObjects from servicePrincipals #
GET /servicePrincipals/{servicePrincipal-id}/createdObjects/{directoryObject-id}/microsoft.graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/createdObjects/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/createdObjects/microsoft.graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /servicePrincipals/{servicePrincipal-id}/createdObjects/microsoft.graph.servicePrincipal/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/memberOf List servicePrincipal memberOf #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id} Get memberOf from servicePrincipals #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id}/microsoft.graph.administrativeUnit Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id}/microsoft.graph.directoryRole Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/{directoryObject-id}/microsoft.graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/microsoft.graph.administrativeUnit Get the items of type microsoft.graph.administrativeUnit in the… #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/microsoft.graph.administrativeUnit/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/microsoft.graph.directoryRole Get the items of type microsoft.graph.directoryRole in the… #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/microsoft.graph.directoryRole/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/microsoft.graph.group Get the items of type microsoft.graph.group in the… #
GET /servicePrincipals/{servicePrincipal-id}/memberOf/microsoft.graph.group/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects servicePrincipals: List ownedObjects #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/{directoryObject-id} Get ownedObjects from servicePrincipals #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/{directoryObject-id}/microsoft.graph.application Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/{directoryObject-id}/microsoft.graph.appRoleAssignment Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/{directoryObject-id}/microsoft.graph.endpoint Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/{directoryObject-id}/microsoft.graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/{directoryObject-id}/microsoft.graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.application Get the items of type microsoft.graph.application in the… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.application/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.appRoleAssignment Get the items of type microsoft.graph.appRoleAssignment in the… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.appRoleAssignment/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.endpoint Get the items of type microsoft.graph.endpoint in the… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.endpoint/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.group Get the items of type microsoft.graph.group in the… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.group/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /servicePrincipals/{servicePrincipal-id}/ownedObjects/microsoft.graph.servicePrincipal/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/owners Get owners from servicePrincipals #
DELETE /servicePrincipals/{servicePrincipal-id}/owners/{directoryObject-id}/$ref Remove service principal owner #
GET /servicePrincipals/{servicePrincipal-id}/owners/{directoryObject-id}/microsoft.graph.appRoleAssignment Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/owners/{directoryObject-id}/microsoft.graph.endpoint Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint #
GET /servicePrincipals/{servicePrincipal-id}/owners/{directoryObject-id}/microsoft.graph.servicePrincipal Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/owners/{directoryObject-id}/microsoft.graph.user Get the item of type microsoft.graph.directoryObject as microsoft.graph.user #
GET /servicePrincipals/{servicePrincipal-id}/owners/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/owners/$ref Get ref of owners from servicePrincipals #
POST /servicePrincipals/{servicePrincipal-id}/owners/$ref servicePrincipal: Add owner #
DELETE /servicePrincipals/{servicePrincipal-id}/owners/$ref Remove service principal owner #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.appRoleAssignment Get the items of type microsoft.graph.appRoleAssignment in the… #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.appRoleAssignment/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.endpoint Get the items of type microsoft.graph.endpoint in the… #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.endpoint/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.servicePrincipal Get the items of type microsoft.graph.servicePrincipal in the… #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.servicePrincipal/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.user Get the items of type microsoft.graph.user in the… #
GET /servicePrincipals/{servicePrincipal-id}/owners/microsoft.graph.user/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf List servicePrincipal transitive memberOf #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/{directoryObject-id} Get transitiveMemberOf from servicePrincipals #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/{directoryObject-id}/microsoft.graph.administrativeUnit Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/{directoryObject-id}/microsoft.graph.directoryRole Get the item of type microsoft.graph.directoryObject as… #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/{directoryObject-id}/microsoft.graph.group Get the item of type microsoft.graph.directoryObject as microsoft.graph.group #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/microsoft.graph.administrativeUnit Get the items of type microsoft.graph.administrativeUnit in the… #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/microsoft.graph.administrativeUnit/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/microsoft.graph.directoryRole Get the items of type microsoft.graph.directoryRole in the… #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/microsoft.graph.directoryRole/$count Get the number of the resource #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/microsoft.graph.group Get the items of type microsoft.graph.group in the… #
GET /servicePrincipals/{servicePrincipal-id}/transitiveMemberOf/microsoft.graph.group/$count Get the number of the resource #

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-serviceprincipals-directoryobject-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-ad-serviceprincipals-directoryobject-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Applications Service Principals.directory Object API
  version: v1.0
servers:
- url: https://graph.microsoft.com/v1.0/
  description: Core
security:
- azureaadv2: []
tags:


# --- truncated at 32 KB (956 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/azure-ad/refs/heads/main/openapi/azure-ad-serviceprincipals-directoryobject-api-openapi.yml