{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/signicat/main/json-schema/signicat-user-schema.json",
  "title": "User",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signicat-mobileid-openapi.yml#/components/schemas/User",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "externalRef": {
      "type": "string",
      "additionalProperties": false,
      "description": "An identifier generated by you (the customer), that points to the user ID (<code>userId</code>) generated by MobileID when a new user is created.\n"
    },
    "segment": {
      "type": "string",
      "additionalProperties": false,
      "description": "A parameter used for segmentation of end-users and their corresponding transactions.\n"
    },
    "id": {
      "type": "string",
      "additionalProperties": false,
      "description": "The ID of the user (<code>userId</code>), in a valid UUID format."
    },
    "created": {
      "type": "string",
      "additionalProperties": false,
      "description": "The timestamp when the user was created. \n\n Returned in pattern <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>. \n\n"
    },
    "lastUsed": {
      "type": "string",
      "additionalProperties": false,
      "description": "The timestamp when the user last executed any <code>REGISTRATION</code>, <code>AUTHENTICATION</code> or <code>SIGNATURE</code> operation. \n\n Returned in pattern <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>. \n\n"
    },
    "state": {
      "type": "string",
      "additionalProperties": false,
      "description": "The state of the user. \n\n This is returned as an enum, and can be either <code>ACTIVE</code> or <code>LOCKED</code>.",
      "enum": [
        "ACTIVE",
        "LOCKED"
      ]
    },
    "attributes": {
      "type": "object",
      "additionalProperties": false,
      "description": "The user attributes, given as key-value pairs.\n"
    }
  }
}