{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-user-config-schema.json",
  "title": "UserConfig",
  "description": "User configuration",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-user-management-api-openapi.yml#/components/schemas/UserConfig",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Username"
    },
    "password": {
      "type": "string",
      "description": "User password"
    },
    "admin_channels": {
      "type": "array",
      "description": "Admin-assigned channels",
      "items": {
        "type": "string"
      }
    },
    "admin_roles": {
      "type": "array",
      "description": "Admin-assigned roles",
      "items": {
        "type": "string"
      }
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "User email"
    },
    "disabled": {
      "type": "boolean",
      "description": "Whether the user is disabled"
    }
  }
}