{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-entra/json-schema/microsoft-entra-microsoft-graph-attack-simulation-repeat-offender-schema.json",
  "title": "attackSimulationRepeatOffender",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-entra-reports-securityreportsroot-api-openapi.yml#/components/schemas/microsoft.graph.attackSimulationRepeatOffender",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "attackSimulationUser": {
      "anyOf": [
        {
          "$ref": "#/$defs/microsoft.graph.attackSimulationUser"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ],
      "description": "The user in an attack simulation and training campaign."
    },
    "repeatOffenceCount": {
      "maximum": 2147483647,
      "minimum": -2147483648,
      "type": [
        "number",
        "null"
      ],
      "description": "Number of repeat offences of the user in attack simulation and training campaigns.",
      "format": "int32"
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "microsoft.graph.attackSimulationUser": {
      "title": "attackSimulationUser",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display name of the user."
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email address of the user."
        },
        "userId": {
          "type": [
            "string",
            "null"
          ],
          "description": "This is the id property value of the user resource that represents the user in the Microsoft Entra tenant."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}