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

# Get current user groups



## OpenAPI

````yaml get /v1/user/groups
openapi: 3.0.0
info:
  title: Auth APIs Specification
  description: Section for description
  version: '1.0'
  contact: {}
servers:
  - url: https://staging.api.us.aptlydone.com/auth
  - url: https://staging.api.eu.aptlydone.com/auth
  - url: https://api.us.aptlydone.com/auth
  - url: https://api.eu.aptlydone.com/auth
security: []
tags: []
paths:
  /v1/user/groups:
    get:
      tags:
        - users
      summary: Get current user groups
      operationId: UserController_getUserGroups_v1
      parameters: []
      responses:
        '200':
          description: User groups retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserGroupResponseDtoArrayResponse'
      security:
        - accessToken: []
components:
  schemas:
    UserGroupResponseDtoArrayResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP Status code
          example: 200
        timestamp:
          type: string
          description: Timestamp of the response
          example: '2026-01-12T09:10:12.337Z'
        message:
          type: string
          description: Response message
          example: Success
        data:
          description: Response data
          type: array
          items:
            $ref: '#/components/schemas/UserGroupResponseDto'
      required:
        - statusCode
        - timestamp
        - message
        - data
    UserGroupResponseDto:
      type: object
      properties:
        id:
          type: string
          example: 77827dfa-cf21-4fec-a5bd-c568d9583431
          description: Unique identifier of the user group
        tenantId:
          type: string
          example: 277ab493-cb1d-40f3-8d61-6432cc78df9a
          description: Unique identifier of the tenant
        userId:
          type: string
          example: 0e2a3c9d-3210-4e98-9dcc-67e8f63305c1
          description: User ID
        groupId:
          type: string
          example: 2b0e14b4-2d70-4517-afc3-9ba10bb890c2
          description: Group ID
        groupTypeId:
          type: string
          example: 40471fbe-5866-486d-9f76-c96482e42277
          description: Group type ID
        groupName:
          type: string
          example: Engineering Team
          description: Group Name
        groupTypeName:
          type: string
          example: Department
          description: Group Type Name
        displayName:
          type: string
          nullable: true
          example: Engineering Department
          description: Display Name of the group
        isPrimaryOrg:
          type: boolean
          example: false
          description: Whether this is the primary organization
          default: true
        externalId:
          type: string
          nullable: true
          example: 0802fdf7-09f2-4445-9e7c-3fc145cbf544
          description: External identifier for the group
        instanceId:
          type: string
          nullable: true
          example: c024da14-f39b-4aa5-9be8-6003132f6c71
          description: Instance identifier for the group
        primaryOrgSetOn:
          format: date-time
          type: string
          example: '2026-01-11T23:45:02.944Z'
          description: When the primary organization was set
        autoProvisioned:
          type: boolean
          example: true
          description: Whether the user group was auto-provisioned
          default: false
        isDeleted:
          type: boolean
          example: true
          description: Whether the user group is marked as deleted
          default: false
        deletedOn:
          format: date-time
          type: string
          nullable: true
          example: '2025-06-16T09:06:25.957Z'
          description: Deletion timestamp
        createdOn:
          format: date-time
          type: string
          example: '2026-01-11T10:22:54.670Z'
          description: Creation timestamp
          default: now()
        updatedOn:
          format: date-time
          type: string
          example: '2026-01-11T18:31:52.005Z'
          description: Last update timestamp
          default: now()
      required:
        - id
        - tenantId
        - userId
        - groupId
        - groupTypeId
        - groupName
        - groupTypeName
        - displayName
        - isPrimaryOrg
        - externalId
        - instanceId
        - primaryOrgSetOn
        - autoProvisioned
        - isDeleted
        - deletedOn
        - createdOn
        - updatedOn
  securitySchemes:
    accessToken:
      scheme: bearer
      bearerFormat: JWT
      type: http

````