Microsoft Graph · Schema

microsoft.graph.directory

Microsoft GraphAzure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Task

Properties

Name Type Description
id string The unique identifier for an entity. Read-only.
@odata.type string
administrativeUnits array Conceptual container for user and group directory objects.
attributeSets array Group of related custom security attribute definitions.
customSecurityAttributeDefinitions array Schema of a custom security attributes (key-value pairs).
deletedItems array Recently deleted items. Read-only. Nullable.
deviceLocalCredentials array The credentials of the device's local administrator account backed up to Microsoft Entra ID.
federationConfigurations array Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol.
onPremisesSynchronization array A container for on-premises directory synchronization functionalities that are available for the organization.
publicKeyInfrastructure object The collection of public key infrastructure instances for the certificate-based authentication feature for users in a Microsoft Entra tenant.
recovery object
remoteTenantGroups array Collection of groups in remote Microsoft Entra tenants that are available in the directory.
subscriptions array List of commercial subscriptions that an organization acquired.
tenantGovernance object Container for Microsoft Entra Tenant Governance capabilities.
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoft-graph-directory-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-directory-schema.json",
  "title": "microsoft.graph.directory",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-directory-directory-api-openapi.yml#/components/schemas/microsoft.graph.directory",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "directory",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "administrativeUnits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.administrativeUnit"
          },
          "description": "Conceptual container for user and group directory objects.",
          "x-ms-navigationProperty": true
        },
        "attributeSets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.attributeSet"
          },
          "description": "Group of related custom security attribute definitions.",
          "x-ms-navigationProperty": true
        },
        "customSecurityAttributeDefinitions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.customSecurityAttributeDefinition"
          },
          "description": "Schema of a custom security attributes (key-value pairs).",
          "x-ms-navigationProperty": true
        },
        "deletedItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "description": "Recently deleted items. Read-only. Nullable.",
          "x-ms-navigationProperty": true
        },
        "deviceLocalCredentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.deviceLocalCredentialInfo"
          },
          "description": "The credentials of the device's local administrator account backed up to Microsoft Entra ID.",
          "x-ms-navigationProperty": true
        },
        "federationConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.identityProviderBase"
          },
          "description": "Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol.",
          "x-ms-navigationProperty": true
        },
        "onPremisesSynchronization": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.onPremisesDirectorySynchronization"
          },
          "description": "A container for on-premises directory synchronization functionalities that are available for the organization.",
          "x-ms-navigationProperty": true
        },
        "publicKeyInfrastructure": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.publicKeyInfrastructureRoot"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The collection of public key infrastructure instances for the certificate-based authentication feature for users in a Microsoft Entra tenant.",
          "x-ms-navigationProperty": true
        },
        "recovery": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.entraRecoveryServices.recovery"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "x-ms-navigationProperty": true
        },
        "remoteTenantGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.remoteTenantGroup"
          },
          "description": "Collection of groups in remote Microsoft Entra tenants that are available in the directory.",
          "x-ms-navigationProperty": true
        },
        "subscriptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.companySubscription"
          },
          "description": "List of commercial subscriptions that an organization acquired.",
          "x-ms-navigationProperty": true
        },
        "tenantGovernance": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.tenantGovernance"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Container for Microsoft Entra Tenant Governance capabilities.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.directory",
  "$defs": {
    "ReferenceNumeric": {
      "enum": [
        "-INF",
        "INF",
        "NaN",
        null
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "microsoft.graph.accessAction": {
      "title": "accessAction",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.actionState": {
      "title": "actionState",
      "enum": [
        "none",
        "pending",
        "canceled",
        "active",
        "done",
        "failed",
        "notSupported"
      ],
      "type": "string",
      "description": "State of the action on the device",
      "x-ms-enum": {
        "name": "actionState",
        "modelAsString": false,
        "values": [
          {
            "value": "none",
            "description": "Not a valid action state",
            "name": "none"
          },
          {
            "value": "pending",
            "description": "Action is pending",
            "name": "pending"
          },
          {
            "value": "canceled",
            "description": "Action has been cancelled.",
            "name": "canceled"
          },
          {
            "value": "active",
            "description": "Action is active.",
            "name": "active"
          },
          {
            "value": "done",
            "description": "Action completed without errors.",
            "name": "done"
          },
          {
            "value": "failed",
            "description": "Action failed",
            "name": "failed"
          },
          {
            "value": "notSupported",
            "description": "Action is not supported.",
            "name": "notSupported"
          }
        ]
      }
    },
    "microsoft.graph.activitiesContainer": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "activitiesContainer",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "contentActivities": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.contentActivity"
              },
              "description": "Collection of activity logs related to content processing.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.activitiesContainer"
    },
    "microsoft.graph.activityHistoryItem": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "activityHistoryItem",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "activeDurationSeconds": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": [
                "number",
                "null"
              ],
              "description": "Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.",
              "format": "int32"
            },
            "createdDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Set by the server. DateTime in UTC when the object was created on the server.",
              "format": "date-time"
            },
            "expirationDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. UTC DateTime when the activityHistoryItem will undergo hard-delete. Can be set by the client.",
              "format": "date-time"
            },
            "lastActiveDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. UTC DateTime when the activityHistoryItem (activity session) was last understood as active or finished - if null, activityHistoryItem status should be Ongoing.",
              "format": "date-time"
            },
            "lastModifiedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Set by the server. DateTime in UTC when the object was modified on the server.",
              "format": "date-time"
            },
            "startedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": "string",
              "description": "Required. UTC DateTime when the activityHistoryItem (activity session) was started. Required for timeline history.",
              "format": "date-time"
            },
            "status": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.status"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored."
            },
            "userTimezone": {
              "type": [
                "string",
                "null"
              ],
              "description": "Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation."
            },
            "activity": {
              "$ref": "#/$defs/microsoft.graph.userActivity"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.activityHistoryItem"
    },
    "microsoft.graph.activityMetadata": {
      "title": "activityMetadata",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "activity": {
          "$ref": "#/$defs/microsoft.graph.userActivityType"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.adhocCall": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "adhocCall",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "recordings": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.callRecording"
              },
              "description": "The recordings of a call. Read-only.",
              "x-ms-navigationProperty": true
            },
            "transcripts": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.callTranscript"
              },
              "description": "The transcripts of a call. Read-only.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.adhocCall"
    },
    "microsoft.graph.administrativeUnit": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.directoryObject"
        },
        {
          "title": "administrativeUnit",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "An optional description for the administrative unit. Supports $filter (eq, ne, in, startsWith), $search."
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "Display name for the administrative unit. Maximum length is 256 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby."
            },
            "isMemberManagementRestricted": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "true if members of this administrative unit should be treated as sensitive, which requires specific permissions to manage. If not set, the default value is null and the default behavior is false. Use this property to define administrative units with roles that don't inherit from tenant-level administrators, and where the management of individual member objects is limited to administrators scoped to a restricted management administrative unit. This property is immutable and can't be changed later.  For more information on how to work with restricted management administrative units, see Restricted management administrative units in Microsoft Entra ID."
            },
            "membershipRule": {
              "type": [
                "string",
                "null"
              ],
              "description": "The dynamic membership rule for the administrative unit. For more information about the rules you can use for dynamic administrative units and dynamic groups, see Manage rules for dynamic membership groups in Microsoft Entra ID."
            },
            "membershipRuleProcessingState": {
              "type": [
                "string",
                "null"
              ],
              "description": "Controls whether the dynamic membership rule is actively processed. Set to On to activate the dynamic membership rule, or Paused to stop updating membership dynamically."
            },
            "membershipType": {
              "type": [
                "string",
                "null"
              ],
              "description": "Indicates the membership type for the administrative unit. The possible values are: dynamic, assigned. If not set, the default value is null and the default behavior is assigned."
            },
            "visibility": {
              "type": [
                "string",
                "null"
              ],
              "description": "Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership. If not set, the default value is null and the default behavior is public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit."
            },
            "extensions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.extension"
              },
              "description": "The collection of open extensions defined for this administrative unit. Nullable.",
              "x-ms-navigationProperty": true
            },
            "members": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.directoryObject"
              },
              "description": "Users and groups that are members of this administrative unit. Supports $expand.",
              "x-ms-navigationProperty": true
            },
            "scopedRoleMembers": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.scopedRoleMembership"
              },
              "description": "Scoped-role members of this administrative unit.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.administrativeUnit"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.administrativeUnit"
    },
    "microsoft.graph.agreementAcceptance": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "agreementAcceptance",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "agreementFileId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The identifier of the agreement file accepted by the user."
            },
            "agreementId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The identifier of the agreement."
            },
            "deviceDisplayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The display name of the device used for accepting the agreement."
            },
            "deviceId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The unique identifier of the device used for accepting the agreement. Supports $filter (eq) and eq for null values."
            },
            "deviceOSType": {
              "type": [
                "string",
                "null"
              ],
              "description": "The operating system used to accept the agreement."
            },
            "deviceOSVersion": {
              "type": [
                "string",
                "null"
              ],
              "description": "The operating system version of the device used to accept the agreement."
            },
            "expirationDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The expiration date time of the acceptance. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and eq for null values.",
              "format": "date-time"
            },
            "recordedDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
              "format": "date-time"
            },
            "state": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.agreementAcceptanceState"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The state of the agreement acceptance. The possible values are: accepted, declined. Supports $filter (eq)."
            },
            "userDisplayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "Display name of the user when the acceptance was recorded."
            },
            "userEmail": {
              "type": [
                "string",
                "null"
              ],
              "description": "Email of the user when the acceptance was recorded."
            },
            "userId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The identifier of the user who accepted the agreement. Supports $filter (eq)."
            },
            "userPrincipalName": {
              "type": [
                "string",
                "null"
              ],
              "description": "UPN of the user when the acceptance was recorded."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.agreementAcceptance"
    },
    "microsoft.graph.agreementAcceptanceState": {
      "title": "agreementAcceptanceState",
      "enum": [
        "accepted",
        "declined",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.album": {
      "title": "album",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "coverImageItemId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier of the driveItem that is the cover of the album."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.allowedLobbyAdmitterRoles": {
      "title": "allowedLobbyAdmitterRoles",
      "enum": [
        "organizerAndCoOrganizersAndPresenters",
        "organizerAndCoOrganizers",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.allowedValue": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "allowedValue",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "isActive": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether the predefined value is active or deactivated. If set to false, this predefined value can't be assigned to any other supported directory objects."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.allowedValue"
    },
    "microsoft.graph.alternativeSecurityId": {
      "title": "alternativeSecurityId",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "identityProvider": {
          "type": [
            "string",
            "null"
          ],
          "description": "For internal use only."
        },
        "key": {
          "type": [
            "string",
            "null"
          ],
          "description": "For internal use only.",
          "format": "base64url"
        },
        "type": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "number",
            "null"
          ],
          "description": "For internal use only.",
          "format": "int32"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.appIdentity": {
      "title": "appIdentity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "appId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Refers to the unique ID representing application in Microsoft Entra ID."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Refers to the application name displayed in the Microsoft Entra admin center."
        },
        "servicePrincipalId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Refers to the unique ID for the service principal in Microsoft Entra ID."
        },
        "servicePrincipalName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Refers to the Service Principal Name is the Application name in the tenant."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.appLogUploadState": {
      "title": "appLogUploadState",
      "enum": [
        "pending",
        "completed",
        "failed",
        "unknownFutureValue"
      ],
      "type": "string",
      "description": "AppLogUploadStatus",
      "x-ms-enum": {
        "name": "appLogUploadState",
        "modelAsString": false,
        "values": [
          {
            "value": "pending",
            "description": "Default. Indicates that request is waiting to be processed or under processing.",
            "name": "pending"
          },
          {
            "value": "completed",
            "description": "Indicates that request is completed with file uploaded to Azure blob for download.",
            "name": "completed"
          },
          {
            "value": "failed",
            "description": "Indicates that request is completed with file uploaded to Azure blob for download.",
            "name": "failed"
          },
          {
            "value": "unknownFutureValue",
            "description": "Evolvable enumeration sentinel value. Do not use.",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "microsoft.graph.appRoleAssignment": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.directoryObject"
        },
        {
          "title": "appRoleAssignment",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "appRoleId": {
              "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
              "type": "string",
              "description": "The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.",
              "format": "uuid"
            },
            "createdDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.",
              "format": "date-time"
            },
            "principalDisplayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only. Supports $filter (eq and startswith)."
            },
            "principalId": {
              "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
              "type": [
                "string",
                "null"
              ],
              "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.",
              "format": "uuid"
            },
            "principalType": {
              "type": [
                "string",
                "null"
              ],
              "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only."
            },
            "resourceDisplayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters."
            },
            "resourceId": {
              "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
              "type": [
                "string",
                "null"
              ],
              "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).",
              "format": "uuid"
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.appRoleAssignment"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.appRoleAssignment"
    },
    "microsoft.graph.applicationMode": {
      "title": "applicationMode",
      "enum": [
        "manual",
        "automatic",
        "recommended",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.applicationPermissionType": {
      "title": "applicationPermissionType",
      "enum": [
        "role",
        "scope",
        "unknownFutureValue"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "applicationPermissionType",
        "modelAsString": false,
        "values": [
          {
            "value": "role",
            "description": "Represents a type of permission that is for an app only scenario. No user is involved.",
            "name": "role"
          },
          {
            "value": "scope",
            "description": "Represents a type of permission that is for an app and user scenario.",
            "name": "scope"
          },
          {
            "value": "unknownFutureValue",
            "description": "This will help in making this enum evolable and adding more values in the future-",
            "name": "unknownFutureValue"
          }
        ]
      }
    },
    "microsoft.graph.applicationResourcePermission": {
      "title": "applicationResourcePermission",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the permission."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the permission."
        },
        "type": {
          "$ref": "#/$defs/microsoft.graph.applicationPermissionType"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.applicationsRequiredResourceAccess": {
      "title": "applicationsRequiredResourceAccess",
      "required": [
        "@odata.type"
      ],

# --- truncated at 32 KB (1243 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-directory-schema.json

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-graph-microsoft-graph-directory"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.