> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user groups

> Get list of user groups with pagination and filtering. See [User Groups](https://docs.galtea.ai/concepts/user-group).



## OpenAPI

````yaml https://api.galtea.ai/openapi.json get /userGroups
openapi: 3.0.0
info:
  version: 1.0.0
  title: Product Management Service API
  description: API documentation for Product Management Service
  contact:
    name: Galtea AI
servers:
  - url: https://api.galtea.ai
security:
  - bearerAuth: []
tags: []
externalDocs:
  description: Galtea Platform Documentation
  url: https://docs.galtea.ai
paths:
  /userGroups:
    get:
      tags:
        - user-groups
      summary: Get user groups
      description: >-
        Get list of user groups with pagination and filtering. See [User
        Groups](https://docs.galtea.ai/concepts/user-group).
      operationId: getUserGroups
      parameters:
        - name: ids
          in: query
          style: form
          explode: true
          description: Filter by user group IDs
          required: false
          schema:
            type: array
            items:
              type: string
        - name: organizationIds
          in: query
          style: form
          explode: true
          description: Filter by organization IDs
          required: false
          schema:
            type: array
            items:
              type: string
        - name: types
          in: query
          style: form
          explode: true
          description: Filter by user group types
          required: false
          schema:
            type: array
            items:
              type: string
        - name: userIds
          in: query
          style: form
          explode: true
          description: Filter by user IDs (groups containing these users)
          required: false
          schema:
            type: array
            items:
              type: string
        - name: metricIds
          in: query
          style: form
          explode: true
          description: Filter by metric IDs (groups linked to these metrics)
          required: false
          schema:
            type: array
            items:
              type: string
        - name: names
          in: query
          style: form
          explode: true
          description: Filter by user group names
          required: false
          schema:
            type: array
            items:
              type: string
        - name: fromCreatedAt
          in: query
          description: Filter groups created at or after this timestamp (ISO 8601)
          required: false
          schema:
            type: string
            format: date-time
        - name: toCreatedAt
          in: query
          description: Filter groups created at or before this timestamp (ISO 8601)
          required: false
          schema:
            type: string
            format: date-time
        - name: sort
          in: query
          style: form
          explode: true
          description: Sort instructions (field and direction pairs)
          required: false
          schema:
            type: array
            items:
              type: string
        - name: limit
          in: query
          description: Maximum number of results
          required: false
          schema:
            type: integer
        - name: offset
          in: query
          description: Number of results to skip
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: User groups retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserGroup'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    UserGroup:
      type: object
      properties:
        id:
          type: string
          example: ug_123
        organizationId:
          type: string
          example: org_123
        name:
          type: string
          example: QA Team
        type:
          type: string
          enum:
            - EVALUATOR
          example: EVALUATOR
        description:
          type: string
          nullable: true
          example: Quality assurance team
        createdAt:
          type: string
          format: date-time
        userIds:
          type: array
          items:
            type: string
          example:
            - user_123
        metricIds:
          type: array
          items:
            type: string
          example:
            - metric_123
    Error:
      type: object
      properties:
        error:
          type: string
          example: Error type
        message:
          type: string
          example: Error message description
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authorization. Pass your API key in the Authorization header as
        a Bearer token. Both new (`gsk_*`) and legacy (`gsk-`) API keys are
        accepted, e.g. `Authorization: Bearer gsk_...` or `Authorization: Bearer
        gsk-...`.

````