{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/traccar/json-schema/traccar-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/traccar-openapi.yaml#/components/schemas/User",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique user identifier"
    },
    "name": {
      "type": "string",
      "description": "User display name"
    },
    "email": {
      "type": "string",
      "description": "Email address used for login and notifications"
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Contact phone number for alerts"
    },
    "readonly": {
      "type": "boolean",
      "description": "When true, the user cannot change settings"
    },
    "administrator": {
      "type": "boolean",
      "description": "Grants full administrative privileges when enabled"
    },
    "map": {
      "type": [
        "string",
        "null"
      ],
      "description": "Preferred default map layer for the user"
    },
    "latitude": {
      "type": "number",
      "description": "Default map center latitude for this user"
    },
    "longitude": {
      "type": "number",
      "description": "Default map center longitude for this user"
    },
    "zoom": {
      "type": "integer",
      "description": "Default map zoom level on login"
    },
    "password": {
      "type": "string",
      "description": "Password for user authentication"
    },
    "coordinateFormat": {
      "type": [
        "string",
        "null"
      ],
      "description": "Preferred coordinate display format"
    },
    "disabled": {
      "type": "boolean",
      "description": "Indicates whether the user account is disabled"
    },
    "expirationTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "deviceLimit": {
      "type": "integer",
      "description": "Maximum number of devices the user can manage"
    },
    "userLimit": {
      "type": "integer",
      "description": "Maximum number of subordinate users"
    },
    "deviceReadonly": {
      "type": "boolean",
      "description": "Restricts user from modifying device attributes"
    },
    "limitCommands": {
      "type": "boolean",
      "description": "Prevents user from sending unsupported commands"
    },
    "fixedEmail": {
      "type": "boolean",
      "description": "Locks the email field to avoid changes"
    },
    "poiLayer": {
      "type": [
        "string",
        "null"
      ],
      "description": "External POI layer configured for the user"
    },
    "attributes": {
      "type": "object",
      "description": "Additional custom user attributes",
      "properties": {}
    }
  }
}