{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/safetyculture/json-schema/safetyculture-s12-thepub-v1-list-users-in-group-response-schema.json",
  "title": "ListUsersInGroupResponse",
  "description": "Result returned from `ListUsersInGroup`",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/safetyculture-groups-api-openapi.yml#/components/schemas/s12.thepub.v1.ListUsersInGroupResponse",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "format": "int32",
      "description": "The number of users in the group."
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "The offset of the request."
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "The limit of the request."
    },
    "users": {
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "#/$defs/s12.thepub.v1.ListUsersInGroupResponse.User"
      },
      "description": "The users in the group."
    }
  },
  "$defs": {
    "s12.thepub.v1.ListUsersInGroupResponse.User": {
      "type": "object",
      "properties": {
        "user_id": {
          "type": "string",
          "description": "The id of the user."
        },
        "firstname": {
          "type": "string",
          "description": "The first name of the user."
        },
        "lastname": {
          "type": "string",
          "description": "The last name of the user."
        },
        "email": {
          "type": "string",
          "description": "The email address of the user."
        },
        "status": {
          "description": "The status of the user.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.thepub.v1.ThePubUserStatus"
            }
          ]
        },
        "seat_type": {
          "description": "The seat type of the user.",
          "allOf": [
            {
              "$ref": "#/$defs/s12.thepub.v1.ThePubSeatType"
            }
          ]
        }
      },
      "description": "User returned for list operations."
    },
    "s12.thepub.v1.ThePubSeatType": {
      "type": "string",
      "enum": [
        "full",
        "free",
        "lite"
      ],
      "default": "full",
      "title": "- full: Full seat\n - free: Free seat\n - lite: Lite seat"
    },
    "s12.thepub.v1.ThePubUserStatus": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ],
      "default": "active",
      "description": "- active: Active user.\n - inactive: Inactive user.",
      "title": "ThePubUserStatus"
    }
  }
}