Microsoft Graph · Schema

microsoft.graph.riskyServicePrincipal

Azure ADCollaborationContactsDocumentsEmailGraphIdentityMicrosoftOffice 365PresentationsProductivitySpreadsheetsT1Tasks
View JSON Schema on GitHub

JSON Schema

microsoft-graph-microsoftgraphriskyserviceprincipal-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/microsoft.graph.riskyServicePrincipal",
  "title": "microsoft.graph.riskyServicePrincipal",
  "allOf": [
    {
      "$ref": "#/components/schemas/microsoft.graph.entity"
    },
    {
      "title": "riskyServicePrincipal",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "appId": {
          "type": "string",
          "description": "The globally unique identifier for the associated application (its appId property), if any.",
          "nullable": true
        },
        "displayName": {
          "type": "string",
          "description": "The display name for the service principal.",
          "nullable": true
        },
        "isEnabled": {
          "type": "boolean",
          "description": "true if the service principal account is enabled; otherwise, false.",
          "nullable": true
        },
        "isProcessing": {
          "type": "boolean",
          "description": "Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.",
          "nullable": true
        },
        "riskDetail": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.riskDetail"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "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",
          "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",
          "nullable": true
        },
        "riskLevel": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.riskLevel"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq)."
        },
        "riskState": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/microsoft.graph.riskState"
            },
            {
              "type": "object",
              "nullable": true
            }
          ],
          "description": "State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue."
        },
        "servicePrincipalType": {
          "type": "string",
          "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.",
          "nullable": true
        },
        "history": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/microsoft.graph.riskyServicePrincipalHistoryItem"
          },
          "description": "Represents the risk history of Microsoft Entra service principals.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "discriminator": {
        "propertyName": "@odata.type",
        "mapping": {
          "#microsoft.graph.riskyServicePrincipalHistoryItem": "#/components/schemas/microsoft.graph.riskyServicePrincipalHistoryItem"
        }
      }
    }
  ]
}