{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-attack-simulation-training-user-coverage-schema.json",
  "title": "attackSimulationTrainingUserCoverage",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-reports-securityreportsroot-api-openapi.yml#/components/schemas/microsoft.graph.attackSimulationTrainingUserCoverage",
  "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."
    },
    "userTrainings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.userTrainingStatusInfo"
      },
      "description": "List of assigned trainings and their statuses for the user."
    },
    "@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"
        }
      }
    },
    "microsoft.graph.trainingStatus": {
      "title": "trainingStatus",
      "enum": [
        "unknown",
        "assigned",
        "inProgress",
        "completed",
        "overdue",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.userTrainingStatusInfo": {
      "title": "userTrainingStatusInfo",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "assignedDateTime": {
          "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 assignment of the training to the user.",
          "format": "date-time"
        },
        "completionDateTime": {
          "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 completion of the training by the user.",
          "format": "date-time"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display name of the assigned training."
        },
        "trainingStatus": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.trainingStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The status of the training assigned to the user. The possible values are: unknown, assigned, inProgress, completed, overdue, unknownFutureValue."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}