{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-defender/json-schema/microsoft-defender-microsoft-graph-end-user-notification-schema.json",
  "title": "microsoft.graph.endUserNotification",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-defender-security-attacksimulationroot-api-openapi.yml#/components/schemas/microsoft.graph.endUserNotification",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "endUserNotification",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "createdBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Identity of the user who created the notification."
        },
        "createdDateTime": {
          "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 when the notification was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the notification as defined by the user."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Name of the notification as defined by the user."
        },
        "lastModifiedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Identity of the user who last modified the notification."
        },
        "lastModifiedDateTime": {
          "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 when the notification was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.",
          "format": "date-time"
        },
        "notificationType": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.endUserNotificationType"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "Type of notification. The possible values are: unknown, positiveReinforcement, noTraining, trainingAssignment, trainingReminder, unknownFutureValue."
        },
        "source": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.simulationContentSource"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The source of the content. The possible values are: unknown, global, tenant, unknownFutureValue."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.simulationContentStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "The status of the notification. The possible values are: unknown, draft, ready, archive, delete, unknownFutureValue."
        },
        "supportedLocales": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Supported locales for endUserNotification content."
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.endUserNotificationDetail"
          },
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.endUserNotification",
  "$defs": {
    "microsoft.graph.emailIdentity": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.identity"
        },
        {
          "title": "emailIdentity",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "email": {
              "type": [
                "string",
                "null"
              ],
              "description": "Email address of the user."
            },
            "@odata.type": {
              "type": "string",
              "default": "#microsoft.graph.emailIdentity"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.emailIdentity"
    },
    "microsoft.graph.endUserNotificationDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "endUserNotificationDetail",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "emailContent": {
              "type": "string",
              "description": "Email HTML content."
            },
            "isDefaultLangauge": {
              "type": [
                "boolean",
                "null"
              ],
              "description": "Indicates whether this language is default."
            },
            "language": {
              "type": "string",
              "description": "Notification language."
            },
            "locale": {
              "type": "string",
              "description": "Notification locale."
            },
            "sentFrom": {
              "$ref": "#/$defs/microsoft.graph.emailIdentity"
            },
            "subject": {
              "type": "string",
              "description": "Mail subject."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.endUserNotificationDetail"
    },
    "microsoft.graph.endUserNotificationType": {
      "title": "endUserNotificationType",
      "enum": [
        "unknown",
        "positiveReinforcement",
        "noTraining",
        "trainingAssignment",
        "trainingReminder",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "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.identity": {
      "title": "identity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
        },
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.simulationContentSource": {
      "title": "simulationContentSource",
      "enum": [
        "unknown",
        "global",
        "tenant",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.simulationContentStatus": {
      "title": "simulationContentStatus",
      "enum": [
        "unknown",
        "draft",
        "ready",
        "archive",
        "delete",
        "unknownFutureValue"
      ],
      "type": "string"
    }
  }
}