{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/signicat/main/json-schema/signicat-user-resource-schema.json",
  "title": "UserResource",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signicat-siam-openapi.yml#/components/schemas/UserResource",
  "type": "object",
  "properties": {
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 150,
      "minLength": 0
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ]
    },
    "userName": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "$ref": "#/$defs/Name"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "active": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "password": {
      "type": [
        "string",
        "null"
      ],
      "writeOnly": true
    },
    "emails": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Email"
      }
    },
    "x509Certificates": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/X509Certificate"
      }
    },
    "lastLogin": {
      "type": "string"
    },
    "otpActive": {
      "type": "boolean"
    },
    "resetPassword": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "customAttributes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ScimInboundCustomAttribute"
      },
      "writeOnly": true
    },
    "preferredLanguage": {
      "type": [
        "string",
        "null"
      ]
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Email": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ]
        },
        "display": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "primary": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "Meta": {
      "type": "null",
      "properties": {
        "resourceType": {
          "type": [
            "string",
            "null"
          ]
        },
        "created": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastModified": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdMillis": {
          "$ref": "#/$defs/Meta",
          "writeOnly": true
        },
        "lastModifiedMillis": {
          "$ref": "#/$defs/Meta",
          "writeOnly": true
        }
      }
    },
    "Name": {
      "type": "null",
      "properties": {
        "formatted": {
          "type": [
            "string",
            "null"
          ]
        },
        "familyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "givenName": {
          "type": [
            "string",
            "null"
          ]
        },
        "middleName": {
          "type": [
            "string",
            "null"
          ]
        },
        "honorificPrefix": {
          "type": [
            "string",
            "null"
          ]
        },
        "honorificSuffix": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ScimInboundCustomAttribute": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "X509Certificate": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ],
          "format": "byte"
        },
        "display": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "primary": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    }
  }
}