{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-terms-and-conditions-schema.json",
  "title": "microsoft.graph.termsAndConditions",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-termsandconditions-api-openapi.yml#/components/schemas/microsoft.graph.termsAndConditions",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "termsAndConditions",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "acceptanceStatement": {
          "type": [
            "string",
            "null"
          ],
          "description": "Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy."
        },
        "bodyText": {
          "type": [
            "string",
            "null"
          ],
          "description": "Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy."
        },
        "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",
          "description": "DateTime the object was created.",
          "format": "date-time"
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Administrator-supplied description of the T&C policy."
        },
        "displayName": {
          "type": "string",
          "description": "Administrator-supplied name for the T&C policy."
        },
        "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",
          "description": "DateTime the object was last modified.",
          "format": "date-time"
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy."
        },
        "version": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": "number",
          "description": "Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy.",
          "format": "int32"
        },
        "acceptanceStatuses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.termsAndConditionsAcceptanceStatus"
          },
          "description": "The list of acceptance statuses for this T&C policy.",
          "x-ms-navigationProperty": true
        },
        "assignments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.termsAndConditionsAssignment"
          },
          "description": "The list of assignments for this T&C policy.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune."
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.termsAndConditions",
  "$defs": {
    "microsoft.graph.deviceAndAppManagementAssignmentTarget": {
      "title": "deviceAndAppManagementAssignmentTarget",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Base type for assignment targets."
    },
    "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.termsAndConditions": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "termsAndConditions",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "acceptanceStatement": {
              "type": [
                "string",
                "null"
              ],
              "description": "Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy."
            },
            "bodyText": {
              "type": [
                "string",
                "null"
              ],
              "description": "Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy."
            },
            "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",
              "description": "DateTime the object was created.",
              "format": "date-time"
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "Administrator-supplied description of the T&C policy."
            },
            "displayName": {
              "type": "string",
              "description": "Administrator-supplied name for the T&C policy."
            },
            "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",
              "description": "DateTime the object was last modified.",
              "format": "date-time"
            },
            "title": {
              "type": [
                "string",
                "null"
              ],
              "description": "Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy."
            },
            "version": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "number",
              "description": "Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy.",
              "format": "int32"
            },
            "acceptanceStatuses": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.termsAndConditionsAcceptanceStatus"
              },
              "description": "The list of acceptance statuses for this T&C policy.",
              "x-ms-navigationProperty": true
            },
            "assignments": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.termsAndConditionsAssignment"
              },
              "description": "The list of assignments for this T&C policy.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune."
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.termsAndConditions"
    },
    "microsoft.graph.termsAndConditionsAcceptanceStatus": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "termsAndConditionsAcceptanceStatus",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "acceptedDateTime": {
              "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",
              "description": "DateTime when the terms were last accepted by the user.",
              "format": "date-time"
            },
            "acceptedVersion": {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "number",
              "description": "Most recent version number of the T&C accepted by the user.",
              "format": "int32"
            },
            "userDisplayName": {
              "type": [
                "string",
                "null"
              ],
              "description": "Display name of the user whose acceptance the entity represents."
            },
            "userPrincipalName": {
              "type": [
                "string",
                "null"
              ],
              "description": "The userPrincipalName of the User that accepted the term."
            },
            "termsAndConditions": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.termsAndConditions"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Navigation link to the terms and conditions that are assigned.",
              "x-ms-navigationProperty": true
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "A termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal."
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.termsAndConditionsAcceptanceStatus"
    },
    "microsoft.graph.termsAndConditionsAssignment": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "termsAndConditionsAssignment",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "target": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.deviceAndAppManagementAssignmentTarget"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Assignment target that the T&C policy is assigned to."
            },
            "@odata.type": {
              "type": "string"
            }
          },
          "description": "A termsAndConditionsAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune."
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.termsAndConditionsAssignment"
    }
  }
}