{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/opentext-cybersecurity/main/json-schema/opentext-cybersecurity-user-group-list-response-schema.json",
  "title": "UserGroupListResponse",
  "description": "Generic List Response",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/opentext-cybersecurity-user-management-api-openapi.yml#/components/schemas/UserGroupListResponse",
  "type": "object",
  "properties": {
    "items": {
      "description": "The list of items",
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserGroup"
      }
    },
    "totalCount": {
      "format": "int32",
      "description": "Total count of items",
      "type": "integer"
    },
    "offset": {
      "format": "int32",
      "description": "Offset of the starting record. 0 indicates the first record.",
      "type": "integer"
    },
    "limit": {
      "format": "int32",
      "description": "Maximum records to return.",
      "type": "integer"
    }
  },
  "$defs": {
    "UserGroup": {
      "description": "User Group",
      "type": "object",
      "properties": {
        "id": {
          "format": "int32",
          "description": "The user group id",
          "type": "integer"
        },
        "name": {
          "description": "The user group name",
          "type": "string"
        },
        "description": {
          "description": "The user group description",
          "type": "string"
        },
        "assignedUsersCount": {
          "format": "int32",
          "description": "The assigned users count",
          "type": "integer"
        },
        "assignedApplicationsCount": {
          "format": "int32",
          "description": "The assigned applications count",
          "type": "integer"
        },
        "createdVia": {
          "description": "How the user was created",
          "type": "string"
        }
      }
    }
  }
}