{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-security-identity-accounts-schema.json",
  "title": "microsoft.graph.security.identityAccounts",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-identitycontainer-api-openapi.yml#/components/schemas/microsoft.graph.security.identityAccounts",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "identityAccounts",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.account"
          },
          "description": "Collection of accounts of the identity in different identity providers."
        },
        "cloudSecurityIdentifier": {
          "type": [
            "string",
            "null"
          ],
          "description": "The cloud security identifier of the identityAccount."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The  Active Directory display name of the identityAccount."
        },
        "domain": {
          "type": [
            "string",
            "null"
          ],
          "description": "The Active Directory domain name of the identityAccount."
        },
        "isEnabled": {
          "type": "boolean",
          "description": "Boolean indicating if the identityAccounts is enabled."
        },
        "onPremisesSecurityIdentifier": {
          "type": [
            "string",
            "null"
          ],
          "description": "The on-premises security identifier of the identityAccount."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "$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.security.account": {
      "title": "account",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.security.action"
          },
          "description": "List of the type of action. The possible values are: disable, enable, forcePasswordReset, revokeAllSessions, requireUserToSignInAgain, markUserAsCompromised, unknownFutureValue."
        },
        "identifier": {
          "type": "string",
          "description": "The account ID."
        },
        "identityProvider": {
          "$ref": "#/$defs/microsoft.graph.security.identityProvider"
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.security.action": {
      "title": "action",
      "enum": [
        "disable",
        "enable",
        "forcePasswordReset",
        "revokeAllSessions",
        "requireUserToSignInAgain",
        "markUserAsCompromised",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.security.identityProvider": {
      "title": "identityProvider",
      "enum": [
        "entraID",
        "activeDirectory",
        "okta",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}