Microsoft Entra · Schema

microsoft.graph.riskyServicePrincipalHistoryItem

Identity and Access ManagementAuthenticationAzure ADEntraIdentityIdentity GovernanceMicrosoftNetwork SecuritySecurityZero TrustIdentity Federation

Properties

Name Type Description
id string The unique identifier for an entity. Read-only.
@odata.type string
appId stringnull The globally unique identifier for the associated application (its appId property), if any.
displayName stringnull The display name for the service principal.
isEnabled booleannull true if the service principal account is enabled; otherwise, false.
isProcessing booleannull Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.
riskDetail object Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden.
riskLastUpdatedDateTime stringnull The date and time that the risk state was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1
riskLevel object Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq).
riskState object State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
servicePrincipalType stringnull Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePr
history array Represents the risk history of Microsoft Entra service principals.
activity object The activity related to service principal risk level change.
initiatedBy stringnull The identifier of the actor of the operation.
View JSON Schema on GitHub

JSON Schema

microsoft-entra-microsoft-graph-risky-service-principal-history-item-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-entra/json-schema/microsoft-entra-microsoft-graph-risky-service-principal-history-item-schema.json",
  "title": "microsoft.graph.riskyServicePrincipalHistoryItem",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-entra-identityprotection-riskyserviceprincipal-api-openapi.yml#/components/schemas/microsoft.graph.riskyServicePrincipalHistoryItem",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.riskyServicePrincipal"
    },
    {
      "title": "riskyServicePrincipalHistoryItem",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "activity": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.riskServicePrincipalActivity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The activity related to service principal risk level change."
        },
        "initiatedBy": {
          "type": [
            "string",
            "null"
          ],
          "description": "The identifier of the actor of the operation."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.riskyServicePrincipalHistoryItem",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.riskDetail": {
      "title": "riskDetail",
      "enum": [
        "none",
        "adminGeneratedTemporaryPassword",
        "userPerformedSecuredPasswordChange",
        "userPerformedSecuredPasswordReset",
        "adminConfirmedSigninSafe",
        "aiConfirmedSigninSafe",
        "userPassedMFADrivenByRiskBasedPolicy",
        "adminDismissedAllRiskForUser",
        "adminConfirmedSigninCompromised",
        "hidden",
        "adminConfirmedUserCompromised",
        "unknownFutureValue",
        "m365DAdminDismissedDetection",
        "adminConfirmedServicePrincipalCompromised",
        "adminDismissedAllRiskForServicePrincipal",
        "userChangedPasswordOnPremises",
        "adminDismissedRiskForSignIn",
        "adminConfirmedAccountSafe",
        "microsoftRevokedSessions"
      ],
      "type": "string"
    },
    "microsoft.graph.riskLevel": {
      "title": "riskLevel",
      "enum": [
        "low",
        "medium",
        "high",
        "hidden",
        "none",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.riskServicePrincipalActivity": {
      "title": "riskServicePrincipalActivity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "detail": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.riskDetail"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden."
        },
        "riskEventTypes": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "The type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.riskState": {
      "title": "riskState",
      "enum": [
        "none",
        "confirmedSafe",
        "remediated",
        "dismissed",
        "atRisk",
        "confirmedCompromised",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.riskyServicePrincipal": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "riskyServicePrincipal",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "appId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The globally unique identifier for the associated application (its appId property), if any."
            },
            "displayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The display name for the service principal."
            },
            "isEnabled": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "true if the service principal account is enabled; otherwise, false."
            },
            "isProcessing": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether Microsoft Entra ID is currently processing the service principal's risky state."
            },
            "riskDetail": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.riskDetail"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden."
            },
            "riskLastUpdatedDateTime": {
              "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 date and time that the risk state was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).",
              "format": "date-time"
            },
            "riskLevel": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.riskLevel"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq)."
            },
            "riskState": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.riskState"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue."
            },
            "servicePrincipalType": {
              "type": [
                "string",
                "null"
              ],
              "description": "Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal."
            },
            "history": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.riskyServicePrincipalHistoryItem"
              },
              "description": "Represents the risk history of Microsoft Entra service principals.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ]
    },
    "microsoft.graph.riskyServicePrincipalHistoryItem": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.riskyServicePrincipal"
        },
        {
          "title": "riskyServicePrincipalHistoryItem",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "activity": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.riskServicePrincipalActivity"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The activity related to service principal risk level change."
            },
            "initiatedBy": {
              "type": [
                "string",
                "null"
              ],
              "description": "The identifier of the actor of the operation."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.riskyServicePrincipalHistoryItem"
    }
  }
}

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-entra-microsoft-graph-risky-service-principal-history-item"
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.