{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-list-organization-users-response-schema.json",
  "title": "ListOrganizationUsersResponse",
  "description": "Paginated organization users response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-users-api-openapi.yml#/components/schemas/ListOrganizationUsersResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationUser"
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number",
          "description": "Total matching users across all pages"
        },
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "hasMore": {
          "type": "boolean"
        },
        "nextOffset": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "prevOffset": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "total",
        "limit",
        "offset",
        "hasMore",
        "nextOffset",
        "prevOffset"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data",
    "pagination"
  ],
  "additionalProperties": false,
  "$defs": {
    "OrganizationUser": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Login account identifier"
        },
        "firstName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "User first name"
        },
        "lastName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "User last name"
        },
        "emailAddress": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "User email address"
        },
        "mfaEnabled": {
          "type": "boolean",
          "description": "Whether MFA is enabled for this user"
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether the user is enabled for this organization"
        },
        "companyAdmin": {
          "type": "boolean",
          "description": "Whether the user is a company admin for this organization"
        }
      },
      "required": [
        "id",
        "firstName",
        "lastName",
        "emailAddress",
        "mfaEnabled",
        "enabled",
        "companyAdmin"
      ],
      "additionalProperties": false,
      "description": "Organization user"
    }
  }
}