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

# Get user details

> Retrieve a workspace user.

Retrieves a single user of the workspace, including their license, role and state.


## OpenAPI

````yaml GET /v1/users/{userId}
openapi: 3.1.0
info:
  title: Claap API
  description: Development documentation
  version: 0.0.0
servers:
  - url: https://api.claap.io/
security:
  - ApiKey: []
paths:
  /v1/users/{userId}:
    get:
      description: Retrieve a workspace user.
      operationId: getV1UsersByUserId
      parameters:
        - in: path
          name: userId
          schema:
            type: string
            description: User identifier
          required: true
      responses:
        '200':
          description: User was successfully retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      user:
                        $ref: '#/components/schemas/ApiWorkspaceUser'
                    required:
                      - user
                required:
                  - result
        '404':
          description: User was not found.
components:
  schemas:
    ApiWorkspaceUser:
      type: object
      properties:
        email:
          type: string
          description: User email.
        id:
          type: string
          description: User identifier, scoped to the workspace.
        license:
          type: string
          enum:
            - None
            - Basic
            - Starter
            - Pro
            - Business
          description: User license.
        name:
          type: string
          description: User full name.
        role:
          type: string
          enum:
            - Owner
            - Admin
            - Creator
            - Guest
            - None
          description: User role in the workspace.
        state:
          type: string
          enum:
            - Active
            - Deleted
            - Gone
            - Suspended
          description: User state in the workspace.
      required:
        - email
        - id
        - license
        - name
        - role
        - state
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Claap-Key

````