{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sonarqube/json-schema/sonarqube-user-search-response-schema.json",
  "title": "UserSearchResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sonarqube-users-api-openapi.yml#/components/schemas/UserSearchResponse",
  "type": "object",
  "properties": {
    "paging": {
      "$ref": "#/$defs/Paging"
    },
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/User"
      }
    }
  },
  "$defs": {
    "Paging": {
      "type": "object",
      "properties": {
        "pageIndex": {
          "type": "integer",
          "description": "Current page number"
        },
        "pageSize": {
          "type": "integer",
          "description": "Number of items per page"
        },
        "total": {
          "type": "integer",
          "description": "Total number of items"
        }
      }
    },
    "User": {
      "type": "object",
      "properties": {
        "login": {
          "type": "string",
          "description": "User login (unique identifier)"
        },
        "name": {
          "type": "string",
          "description": "Display name"
        },
        "active": {
          "type": "boolean",
          "description": "Whether the account is active"
        },
        "email": {
          "type": "string",
          "description": "Email address"
        },
        "local": {
          "type": "boolean",
          "description": "Whether this is a local (non-LDAP/SSO) account"
        },
        "externalIdentity": {
          "type": "string",
          "description": "Identity for external authentication providers"
        },
        "externalProvider": {
          "type": "string",
          "description": "Authentication provider name"
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}