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

# Get all groups for user

> Returns a paginated list of [grps](/concepts/grp) for a specific [user](/concepts/user).



## OpenAPI

````yaml POST /user/grp/{id}
openapi: 3.0.0
info:
  version: 2.0.0
  title: illuxiLMS API
  description: Interact with the illuxiLMS API to manage your learning content and users.
  termsOfService: https://illuxi.com/conditions-utilisation/
  contact:
    name: illuxi Team
    email: info@illuxi.com
    url: https://illuxi.com
servers:
  - url: https://{portalApiUrl}
    description: Production server (uses live data)
    variables:
      portalApiUrl:
        default: your-portal.acme.com/api-v2
        description: Your portal's API URL
security:
  - bearerAuth: []
paths:
  /user/grp/{id}:
    post:
      description: >-
        Returns a paginated list of [grps](/concepts/grp) for a specific
        [user](/concepts/user).
      operationId: getGrpsForUser
      parameters:
        - name: id
          in: path
          description: ID of the user
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                start:
                  type: integer
                  default: 0
                limit:
                  type: integer
                  default: 20
            example:
              start: 0
              limit: 20
      responses:
        '200':
          description: list of groups for the user
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  total:
                    type: integer
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Grp'
        default:
          description: unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Grp:
      type: object
      properties:
        grp_id:
          type: integer
          description: Unique identifier of the group
          readOnly: true
        grp_name:
          type: string
          description: Internal key name of the group
        grp_description:
          type: string
          nullable: true
          description: Human-readable description of the group
        grp_parent_id:
          type: integer
          nullable: true
          description: ID of the parent group (for nested groups)
        grp_external_id:
          type: string
          nullable: true
          description: External identifier for integration with third-party systems
        grp_external_name:
          type: string
          nullable: true
          description: Alternate name from the external system
        grp_created_date:
          type: string
          format: date-time
          readOnly: true
          description: Date the group was created
        grp_updated_date:
          type: string
          format: date-time
          readOnly: true
          description: Date the group was last updated
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Authentication token obtained from POST /token

````