{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/opoint/json-schema/opoint-opoint-user-schema.json",
  "title": "OpointUser",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opoint-folders-api-openapi.yml#/components/schemas/OpointUser",
  "type": "object",
  "properties": {
    "id_user": {
      "type": "integer",
      "readOnly": true
    },
    "external_id": {
      "type": "string",
      "description": "Id from external Identity Provider",
      "maxLength": 255
    },
    "username": {
      "type": "string",
      "maxLength": 255
    },
    "is_active": {
      "type": "boolean",
      "description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts."
    },
    "owner": {
      "type": "integer",
      "maximum": 2147483647,
      "minimum": -2147483648
    },
    "customer": {
      "type": "string"
    },
    "user_type": {
      "allOf": [
        {
          "$ref": "#/$defs/UserTypeField"
        }
      ],
      "default": {
        "value": 0,
        "name": "Standard"
      }
    },
    "display_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255
    }
  },
  "required": [
    "customer",
    "id_user",
    "username"
  ],
  "$defs": {
    "UserTypeField": {
      "type": "object",
      "properties": {
        "value": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ]
    }
  }
}