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

# List Groups

> Retrieves all Groups with pagination.



## OpenAPI

````yaml /es/openapi/v3-current/AM-identity.yaml get /v1/groups
openapi: 3.0.1
info:
  contact: {}
  description: This is a swagger documentation for the Identity API
  termsOfService: http://swagger.io/terms/
  title: Identity API
  version: 1.0.0
servers:
  - url: //localhost:4001/
security: []
paths:
  /v1/groups:
    get:
      tags:
        - Groups
      summary: List Groups
      description: Retrieves all Groups with pagination.
      parameters:
        - description: Page number
          in: query
          name: page
          schema:
            default: 1
            type: integer
        - description: Items per page
          in: query
          name: limit
          schema:
            default: 10
            type: integer
        - description: Filter by name (case-insensitive substring)
          in: query
          name: name
          schema:
            type: string
        - description: Filter by user ID (relational listing)
          in: query
          name: userId
          schema:
            type: string
        - description: Filter by role ID (relational listing)
          in: query
          name: roleId
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_200'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    inline_response_200:
      example:
        Pagination:
          total: 10
          limit: 10
          page: 1
          items: '{}'
        items:
          - createdAt: '2026-01-01T00:00:00.000Z'
            isTopGroup: false
            manager: admin
            contactEmail: admin@example.com
            isEnabled: true
            name: My Group
            id: my-group
            type: custom
            parentId: parent-group
            users:
              - user1
              - user2
            updatedAt: '2026-06-24T10:00:00.000Z'
          - createdAt: '2026-01-01T00:00:00.000Z'
            isTopGroup: false
            manager: admin
            contactEmail: admin@example.com
            isEnabled: true
            name: My Group
            id: my-group
            type: custom
            parentId: parent-group
            users:
              - user1
              - user2
            updatedAt: '2026-06-24T10:00:00.000Z'
      properties:
        Pagination:
          $ref: '#/components/schemas/Pagination'
        items:
          items:
            $ref: '#/components/schemas/GroupFullResponse'
          type: array
      type: object
    pkg.HTTPError:
      properties:
        code:
          type: string
        entityType:
          type: string
        err:
          type: object
        message:
          type: string
        title:
          type: string
      type: object
    Pagination:
      description: >-
        Pagination is the struct designed to store the pagination data of an
        entity list.
      example:
        total: 10
        limit: 10
        page: 1
        items: '{}'
      properties:
        items:
          type: object
        limit:
          example: 10
          type: integer
        page:
          example: 1
          type: integer
        total:
          example: 10
          type: integer
      type: object
    GroupFullResponse:
      description: GroupFullResponse payload
      example:
        createdAt: '2026-01-01T00:00:00.000Z'
        isTopGroup: false
        manager: admin
        contactEmail: admin@example.com
        isEnabled: true
        name: My Group
        id: my-group
        type: custom
        parentId: parent-group
        users:
          - user1
          - user2
        updatedAt: '2026-06-24T10:00:00.000Z'
      properties:
        contactEmail:
          example: admin@example.com
          type: string
        createdAt:
          example: '2026-01-01T00:00:00.000Z'
          type: string
        id:
          example: my-group
          type: string
        isEnabled:
          example: true
          type: boolean
        isTopGroup:
          example: false
          type: boolean
        manager:
          example: admin
          type: string
        name:
          example: My Group
          type: string
        parentId:
          example: parent-group
          type: string
        type:
          example: custom
          type: string
        updatedAt:
          example: '2026-06-24T10:00:00.000Z'
          type: string
        users:
          example:
            - user1
            - user2
          items:
            type: string
          type: array
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer authentication. Send Authorization: Bearer <token>.'
      in: header
      name: Authorization
      type: apiKey

````