ServicePrincipal

A Microsoft Entra service principal — the local tenant instance of an application

Active DirectoryAuthenticationAuthorizationDirectory ServicesIdentity ManagementMicrosoft EntraZero Trust

Properties

Name Type Description
id string Unique identifier for the service principal object
appId string Application (client) ID of the associated application registration
displayName string Display name for the service principal
servicePrincipalType string Type of service principal
accountEnabled booleannull True if the service principal account is enabled
appRoles array Application roles exposed by the associated application
oauth2PermissionScopes array Delegated permission scopes exposed by the application
homepage stringnull Home page or landing page of the application
loginUrl stringnull URL to direct users for sign-in (for SP-initiated SAML SSO)
replyUrls array URLs where tokens are sent after authentication
tags array Strings that categorize the application
createdDateTime stringnull
View JSON Schema on GitHub

JSON Schema

applications-service-principal-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/active-directory/main/json-schema/applications-service-principal-schema.json",
  "title": "ServicePrincipal",
  "description": "A Microsoft Entra service principal — the local tenant instance of an application",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the service principal object",
      "readOnly": true
    },
    "appId": {
      "type": "string",
      "format": "uuid",
      "description": "Application (client) ID of the associated application registration"
    },
    "displayName": {
      "type": "string",
      "description": "Display name for the service principal"
    },
    "servicePrincipalType": {
      "type": "string",
      "description": "Type of service principal",
      "enum": ["Application", "Legacy", "ManagedIdentity", "SocialIdp"]
    },
    "accountEnabled": {
      "type": ["boolean", "null"],
      "description": "True if the service principal account is enabled"
    },
    "appRoles": {
      "type": "array",
      "description": "Application roles exposed by the associated application",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "displayName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "allowedMemberTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": ["User", "Application"]
            }
          },
          "isEnabled": {
            "type": "boolean"
          }
        }
      }
    },
    "oauth2PermissionScopes": {
      "type": "array",
      "description": "Delegated permission scopes exposed by the application",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "adminConsentDisplayName": {
            "type": "string"
          },
          "adminConsentDescription": {
            "type": "string"
          },
          "userConsentDisplayName": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": ["User", "Admin"]
          },
          "isEnabled": {
            "type": "boolean"
          }
        }
      }
    },
    "homepage": {
      "type": ["string", "null"],
      "format": "uri",
      "description": "Home page or landing page of the application"
    },
    "loginUrl": {
      "type": ["string", "null"],
      "format": "uri",
      "description": "URL to direct users for sign-in (for SP-initiated SAML SSO)"
    },
    "replyUrls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "URLs where tokens are sent after authentication"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Strings that categorize the application"
    },
    "createdDateTime": {
      "type": ["string", "null"],
      "format": "date-time",
      "readOnly": true
    }
  }
}

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/applications-service-principal"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.