> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User By Id

> Retrieves a specific user by their ID



## OpenAPI

````yaml /openapi/product/user-api.yaml get /users/{id}
openapi: 3.0.3
info:
  title: Domo Users API
  description: |
    API for managing Domo Users from outside of your Domo instance, such as:
    - Jupyter scripts
    - Code Engine Functions
    - Custom Java/Node/Python scripts
  version: 1.0.0
  contact:
    name: Domo Support
    url: https://www.domo.com
servers:
  - url: https://{instance}.domo.com
    description: Domo Identity API
    variables:
      instance:
        default: your-instance
        description: Your Domo instance name
security:
  - DeveloperToken: []
tags:
  - name: Users
    description: Operations for managing Domo users
paths:
  /users/{id}:
    get:
      tags:
        - Users API (Product)
      summary: Get User By Id
      description: Retrieves a specific user by their ID
      operationId: getUserById
      parameters:
        - name: id
          in: path
          required: true
          description: ID of the user requested
          schema:
            type: integer
          example: 123456
        - $ref: '#/components/parameters/PartsQueryParam'
      responses:
        '200':
          description: User retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserListResponse'
        '401':
          description: Unauthorized - Invalid or missing authentication token
        '404':
          description: User not found
components:
  parameters:
    PartsQueryParam:
      name: parts
      in: query
      required: false
      description: Specifies the level of detail to include in the response
      schema:
        type: string
        enum:
          - MINIMAL
          - SIMPLE
          - DETAILED
          - GROUPS
          - ROLE
      example: DETAILED
  schemas:
    UserListResponse:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/User'
          description: List of users
    User:
      type: object
      properties:
        id:
          type: integer
          description: Unique identifier for the user
          example: 123456
        displayName:
          type: string
          description: Display name of the user
          example: John Doe
        userName:
          type: string
          description: Username of the user
          example: john.doe@example.com
        emailAddress:
          type: string
          format: email
          description: Email address of the user
          example: john.doe@example.com
        roleId:
          type: integer
          description: Role ID assigned to the user
          example: 1
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/UserAttribute'
          description: Custom attributes associated with the user
    UserAttribute:
      type: object
      properties:
        key:
          type: string
          description: Attribute key
          example: department
        values:
          oneOf:
            - type: array
              items:
                type: string
            - type: array
              items:
                type: integer
          description: Attribute values (can be strings or numbers)
          example:
            - Engineering
            - Product
  securitySchemes:
    DeveloperToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Domo Developer Token for authentication

````