{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-list-users-response-schema.json",
  "title": "ListUsersResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-users-api-openapi.yml#/components/schemas/ListUsersResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "Users in the organization group, each with their per-organization access.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "organizationGroupRole": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ORGANIZATION_GROUP_ADMIN",
              "ORGANIZATION_GROUP_MEMBER"
            ]
          },
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "organizationId": {
                  "type": "string"
                },
                "externalOrganizationId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "ADMIN",
                    "MEMBER"
                  ]
                }
              },
              "required": [
                "organizationId",
                "externalOrganizationId",
                "role"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "name",
          "email",
          "organizationGroupRole",
          "organizations"
        ],
        "additionalProperties": false
      }
    },
    "nextToken": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass back as `nextToken` to fetch the next page. Null when there are no more results."
    }
  },
  "required": [
    "items",
    "nextToken"
  ],
  "additionalProperties": false
}