{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-entra/json-schema/microsoft-entra-microsoft-graph-attack-simulation-simulation-user-coverage-schema.json",
  "title": "attackSimulationSimulationUserCoverage",
  "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.attackSimulationSimulationUserCoverage",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "attackSimulationUser": {
      "anyOf": [
        {
          "$ref": "#/$defs/microsoft.graph.attackSimulationUser"
        },
        {
          "type": [
            "object",
            "null"
          ]
        }
      ],
      "description": "User in an attack simulation and training campaign."
    },
    "clickCount": {
      "maximum": 2147483647,
      "minimum": -2147483648,
      "type": [
        "number",
        "null"
      ],
      "description": "Number of link clicks in the received payloads by the user in attack simulation and training campaigns.",
      "format": "int32"
    },
    "compromisedCount": {
      "maximum": 2147483647,
      "minimum": -2147483648,
      "type": [
        "number",
        "null"
      ],
      "description": "Number of compromising actions by the user in attack simulation and training campaigns.",
      "format": "int32"
    },
    "latestSimulationDateTime": {
      "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": "Date and time of the latest attack simulation and training campaign that the user was included in.",
      "format": "date-time"
    },
    "simulationCount": {
      "maximum": 2147483647,
      "minimum": -2147483648,
      "type": [
        "number",
        "null"
      ],
      "description": "Number of attack simulation and training campaigns that the user was included in.",
      "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"
        }
      }
    }
  }
}