{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-device-local-credential-info-schema.json",
  "title": "microsoft.graph.deviceLocalCredentialInfo",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-directory-devicelocalcredentialinfo-api-openapi.yml#/components/schemas/microsoft.graph.deviceLocalCredentialInfo",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "deviceLocalCredentialInfo",
      "type": "object",
      "properties": {
        "credentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.deviceLocalCredential"
          },
          "description": "The credentials of the device's local administrator account backed up to Azure Active Directory."
        },
        "deviceName": {
          "type": "string",
          "description": "Display name of the device that the local credentials are associated with."
        },
        "lastBackupDateTime": {
          "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": "When the local administrator account credential was backed up to Azure Active Directory.",
          "format": "date-time"
        },
        "refreshDateTime": {
          "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": "When the local administrator account credential will be refreshed and backed up to Azure Active Directory.",
          "format": "date-time"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.deviceLocalCredential": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "deviceLocalCredential",
          "type": "object",
          "properties": {
            "accountName": {
              "type": "string",
              "description": "The name of the local admin account for which LAPS is enabled."
            },
            "accountSid": {
              "type": "string",
              "description": "The SID of the local admin account for which LAPS is enabled."
            },
            "backupDateTime": {
              "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": "When the local administrator account credential for the device object was backed up to Azure Active Directory.",
              "format": "date-time"
            },
            "passwordBase64": {
              "type": "string",
              "description": "The password for the local administrator account that is backed up to Azure Active Directory and returned as a Base64 encoded value."
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  }
}