Microsoft Graph · Schema

microsoft.graph.servicePrincipal

Microsoft GraphAzure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Task

Properties

Name Type Description
id string The unique identifier for an entity. Read-only.
@odata.type string
deletedDateTime stringnull Date and time when this object was deleted. Always null when the object hasn't been deleted.
accountEnabled booleannull true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. Supports $filter (eq, ne, not, in).
addIns array Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' f
alternativeNames array Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. Supports $filter (eq, not, ge, le, startsWith).
appDescription stringnull The description exposed by the associated application.
appDisplayName stringnull The display name exposed by the associated application. Maximum length is 256 characters.
appId stringnull The unique identifier for the associated application (its appId property). Alternate key. Supports $filter (eq, ne, not, in, startsWith).
applicationTemplateId stringnull Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the service principal wasn't created from an application template.
appOwnerOrganizationId stringnull Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le).
appRoleAssignmentRequired boolean Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. No
appRoles array The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable.
customSecurityAttributes object An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter
description stringnull Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size i
disabledByMicrosoftStatus stringnull Specifies whether Microsoft has disabled the registered application. The possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicio
displayName stringnull The display name for the service principal. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.
homepage stringnull Home page or landing page of the application.
info object Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users th
keyCredentials array The collection of key credentials associated with the service principal. Not nullable. Supports $filter (eq, not, ge, le).
loginUrl stringnull Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Ent
logoutUrl stringnull Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols.
notes stringnull Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters.
notificationEmailAddresses array Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML tok
oauth2PermissionScopes array The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable.
passwordCredentials array The collection of password credentials associated with the application. Not nullable.
preferredSingleSignOnMode stringnull Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The sup
preferredTokenSigningKeyThumbprint stringnull This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML
replyUrls array The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application.
resourceSpecificApplicationPermissions array The resource-specific application permissions exposed by this application. Currently, resource-specific permissions are only supported for Teams apps accessing to specific chats and teams using Micros
samlSingleSignOnSettings object The collection for settings related to saml single sign-on.
servicePrincipalNames array Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed b
servicePrincipalType stringnull Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be
signInAudience stringnull Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Micros
tags array Custom strings that can be used to categorize and identify the service principal. Not nullable. The value is the union of strings set here and on the associated application entity's tags property.Supp
tokenEncryptionKeyId stringnull Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The a
verifiedPublisher object Specifies the verified publisher of the application that's linked to this service principal.
appManagementPolicies array The appManagementPolicy applied to this application.
appRoleAssignedTo array App role assignments for this app or service, granted to users, groups, and other service principals. Supports $expand.
appRoleAssignments array App role assignment for another app or service, granted to this service principal. Supports $expand.
claimsMappingPolicies array The claimsMappingPolicies assigned to this service principal. Supports $expand.
createdObjects array Directory objects created by this service principal. Read-only. Nullable.
delegatedPermissionClassifications array
endpoints array
federatedIdentityCredentials array Federated identities for a specific type of service principal - managed identity. Supports $expand and $filter (/$count eq 0, /$count ne 0).
homeRealmDiscoveryPolicies array The homeRealmDiscoveryPolicies assigned to this service principal. Supports $expand.
memberOf array Roles that this service principal is a member of. HTTP Methods: GET Read-only. Nullable. Supports $expand.
oauth2PermissionGrants array Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user. Read-only. Nullable.
ownedObjects array Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).
owners array Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0,
remoteDesktopSecurityConfiguration object The remoteDesktopSecurityConfiguration object applied to this service principal. Supports $filter (eq) for isRemoteDesktopProtocolEnabled property.
synchronization object Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API.
tokenIssuancePolicies array The tokenIssuancePolicies assigned to this service principal.
tokenLifetimePolicies array The tokenLifetimePolicies assigned to this service principal.
transitiveMemberOf array
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoft-graph-service-principal-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-service-principal-schema.json",
  "title": "microsoft.graph.servicePrincipal",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-applications-directoryobject-api-openapi.yml#/components/schemas/microsoft.graph.servicePrincipal",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.directoryObject"
    },
    {
      "title": "servicePrincipal",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "accountEnabled": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. Supports $filter (eq, ne, not, in)."
        },
        "addIns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.addIn"
          },
          "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on."
        },
        "alternativeNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. Supports $filter (eq, not, ge, le, startsWith)."
        },
        "appDescription": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description exposed by the associated application."
        },
        "appDisplayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name exposed by the associated application. Maximum length is 256 characters."
        },
        "appId": {
          "type": [
            "string",
            "null"
          ],
          "description": "The unique identifier for the associated application (its appId property). Alternate key. Supports $filter (eq, ne, not, in, startsWith)."
        },
        "applicationTemplateId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne). Read-only. null if the service principal wasn't created from an application template."
        },
        "appOwnerOrganizationId": {
          "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": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. Supports $filter (eq, ne, NOT, ge, le).",
          "format": "uuid"
        },
        "appRoleAssignmentRequired": {
          "type": "boolean",
          "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable. Supports $filter (eq, ne, NOT)."
        },
        "appRoles": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.appRole"
          },
          "description": "The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable."
        },
        "customSecurityAttributes": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.customSecurityAttributeValue"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter value is case sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search."
        },
        "disabledByMicrosoftStatus": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies whether Microsoft has disabled the registered application. The possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).  Supports $filter (eq, ne, not)."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name for the service principal. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby."
        },
        "homepage": {
          "type": [
            "string",
            "null"
          ],
          "description": "Home page or landing page of the application."
        },
        "info": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.informationalUrl"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. Supports $filter (eq, ne, not, ge, le, and eq on null values)."
        },
        "keyCredentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.keyCredential"
          },
          "description": "The collection of key credentials associated with the service principal. Not nullable. Supports $filter (eq, not, ge, le)."
        },
        "loginUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL."
        },
        "logoutUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols."
        },
        "notes": {
          "type": [
            "string",
            "null"
          ],
          "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters."
        },
        "notificationEmailAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications."
        },
        "oauth2PermissionScopes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.permissionScope"
          },
          "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable."
        },
        "passwordCredentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.passwordCredential"
          },
          "description": "The collection of password credentials associated with the application. Not nullable."
        },
        "preferredSingleSignOnMode": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically."
        },
        "preferredTokenSigningKeyThumbprint": {
          "type": [
            "string",
            "null"
          ],
          "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property."
        },
        "replyUrls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable."
        },
        "resourceSpecificApplicationPermissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.resourceSpecificPermission"
          },
          "description": "The resource-specific application permissions exposed by this application. Currently, resource-specific permissions are only supported for Teams apps accessing to specific chats and teams using Microsoft Graph. Read-only."
        },
        "samlSingleSignOnSettings": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.samlSingleSignOnSettings"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The collection for settings related to saml single sign-on."
        },
        "servicePrincipalNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.  Supports $filter (eq, not, ge, le, startsWith)."
        },
        "servicePrincipalType": {
          "type": [
            "string",
            "null"
          ],
          "description": "Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use."
        },
        "signInAudience": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable. The value is the union of strings set here and on the associated application entity's tags property.Supports $filter (eq, not, ge, le, startsWith)."
        },
        "tokenEncryptionKeyId": {
          "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": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.",
          "format": "uuid"
        },
        "verifiedPublisher": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.verifiedPublisher"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Specifies the verified publisher of the application that's linked to this service principal."
        },
        "appManagementPolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.appManagementPolicy"
          },
          "description": "The appManagementPolicy applied to this application.",
          "x-ms-navigationProperty": true
        },
        "appRoleAssignedTo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.appRoleAssignment"
          },
          "description": "App role assignments for this app or service, granted to users, groups, and other service principals. Supports $expand.",
          "x-ms-navigationProperty": true
        },
        "appRoleAssignments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.appRoleAssignment"
          },
          "description": "App role assignment for another app or service, granted to this service principal. Supports $expand.",
          "x-ms-navigationProperty": true
        },
        "claimsMappingPolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.claimsMappingPolicy"
          },
          "description": "The claimsMappingPolicies assigned to this service principal. Supports $expand.",
          "x-ms-navigationProperty": true
        },
        "createdObjects": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "description": "Directory objects created by this service principal. Read-only. Nullable.",
          "x-ms-navigationProperty": true
        },
        "delegatedPermissionClassifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.delegatedPermissionClassification"
          },
          "x-ms-navigationProperty": true
        },
        "endpoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.endpoint"
          },
          "x-ms-navigationProperty": true
        },
        "federatedIdentityCredentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.federatedIdentityCredential"
          },
          "description": "Federated identities for a specific type of service principal - managed identity. Supports $expand and $filter (/$count eq 0, /$count ne 0).",
          "x-ms-navigationProperty": true
        },
        "homeRealmDiscoveryPolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.homeRealmDiscoveryPolicy"
          },
          "description": "The homeRealmDiscoveryPolicies assigned to this service principal. Supports $expand.",
          "x-ms-navigationProperty": true
        },
        "memberOf": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "description": "Roles that this service principal is a member of. HTTP Methods: GET Read-only. Nullable. Supports $expand.",
          "x-ms-navigationProperty": true
        },
        "oauth2PermissionGrants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.oAuth2PermissionGrant"
          },
          "description": "Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user. Read-only. Nullable.",
          "x-ms-navigationProperty": true
        },
        "ownedObjects": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "description": "Directory objects that this service principal owns. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).",
          "x-ms-navigationProperty": true
        },
        "owners": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand.",
          "x-ms-navigationProperty": true
        },
        "remoteDesktopSecurityConfiguration": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.remoteDesktopSecurityConfiguration"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The remoteDesktopSecurityConfiguration object applied to this service principal. Supports $filter (eq) for isRemoteDesktopProtocolEnabled property.",
          "x-ms-navigationProperty": true
        },
        "synchronization": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.synchronization"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API.",
          "x-ms-navigationProperty": true
        },
        "tokenIssuancePolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.tokenIssuancePolicy"
          },
          "description": "The tokenIssuancePolicies assigned to this service principal.",
          "x-ms-navigationProperty": true
        },
        "tokenLifetimePolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.tokenLifetimePolicy"
          },
          "description": "The tokenLifetimePolicies assigned to this service principal.",
          "x-ms-navigationProperty": true
        },
        "transitiveMemberOf": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.directoryObject"
          },
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string",
          "default": "#microsoft.graph.servicePrincipal"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.servicePrincipal",
  "$defs": {
    "microsoft.graph.addIn": {
      "title": "addIn",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "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 for the addIn object.",
          "format": "uuid"
        },
        "properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.keyValue"
          },
          "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required."
        },
        "type": {
          "type": "string",
          "description": "The unique name for the functionality exposed by the app."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.appCredentialRestrictionType": {
      "title": "appCredentialRestrictionType",
      "enum": [
        "passwordAddition",
        "passwordLifetime",
        "symmetricKeyAddition",
        "symmetricKeyLifetime",
        "customPasswordAddition",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.appKeyCredentialRestrictionType": {
      "title": "appKeyCredentialRestrictionType",
      "enum": [
        "asymmetricKeyLifetime",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.appManagementConfiguration": {
      "title": "appManagementConfiguration",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "keyCredentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.keyCredentialConfiguration"
          },
          "description": "Collection of keyCredential restrictions settings to be applied to an application or service principal."
        },
        "passwordCredentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.passwordCredentialConfiguration"
          },
          "description": "Collection of password restrictions settings to be applied to an application or service principal."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.appManagementPolicy": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.policyBase"
        },
        {
          "title": "appManagementPolicy",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "isEnabled": {
              "type": "boolean",
              "description": "Denotes whether the policy is enabled."
            },
            "restrictions": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.customAppManagementConfiguration"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Restrictions that apply to an application or service principal object."
            },
            "appliesTo": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.directoryObject"
              },
              "description": "Collection of applications and service principals to which the policy is applied.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.appManagementPolicy"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.appManagementPolicy"
    },
    "microsoft.graph.appManagementRestrictionState": {
      "title": "appManagementRestrictionState",
      "enum": [
        "enabled",
        "disabled",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.appRole": {
      "title": "appRole",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "allowedMemberTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during  consent experiences."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display name for the permission that appears in the app role assignment and consent experiences."
        },
        "id": {
          "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": "Unique role identifier inside the appRoles collection. When creating a new app role, a new GUID identifier must be provided.",
          "format": "uuid"
        },
        "isEnabled": {
          "type": "boolean",
          "description": "When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false.  At that point, in a subsequent call, this role may be removed."
        },
        "origin": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only."
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ;  =  ? @ [ ] ^ + _  {  } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "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 

# --- truncated at 32 KB (121 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-service-principal-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-service-principal"
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. See our Privacy Policy and Terms.

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