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

# Get a user by ID

> Returns a single user in your organization by their ID.



## OpenAPI

````yaml GET /api/v1/users/{id}
openapi: 3.0.0
info:
  description: REST API for AccessOwl third-party integrations
  title: AccessOwl API
  version: 1.0.0
servers:
  - url: https://api.accessowl.com
    variables: {}
security:
  - bearer: []
tags: []
paths:
  /api/v1/users/{id}:
    get:
      tags:
        - users
      summary: Get a user by ID
      description: Returns a single user in your organization by their ID.
      operationId: AccessOwlApi.StaffController.show
      parameters:
        - description: User ID
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
          description: User
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
      callbacks: {}
components:
  schemas:
    User:
      description: A user in the organization
      example:
        deactivated_at: null
        departments:
          - Engineering
        email: john@example.com
        employment_type: full_time
        first_name: John
        full_name: John Doe
        id: 7488a646-e31f-11e4-aace-600308960662
        inserted_at: '2023-01-01T00:00:00Z'
        job_title: Software Engineer
        last_name: Doe
        location_city: San Francisco
        manager_user_id: null
        status: active
        teams:
          - Engineering
          - Backend
        updated_at: '2023-01-01T00:00:00Z'
      properties:
        deactivated_at:
          description: Deactivation timestamp
          format: date-time
          nullable: true
          type: string
        departments:
          description: Departments the user belongs to
          items:
            type: string
          type: array
        email:
          description: Email address
          format: email
          type: string
        employment_type:
          description: Employment type
          enum:
            - full_time
            - part_time
            - contract
            - freelance
            - internship
            - apprenticeship
            - working_student
            - training
          nullable: true
          type: string
        first_name:
          description: First name
          type: string
        full_name:
          description: Full name (computed)
          type: string
        id:
          description: User ID
          format: uuid
          type: string
        inserted_at:
          description: Creation timestamp
          format: date-time
          type: string
        job_title:
          description: Job title
          nullable: true
          type: string
        last_name:
          description: Last name
          type: string
        location_city:
          description: City location
          nullable: true
          type: string
        manager_user_id:
          description: Manager user ID
          format: uuid
          nullable: true
          type: string
        status:
          description: Current status
          enum:
            - active
            - inactive
            - onboarding
            - onboarding_provisioning_planned
            - offboarding
            - offboarding_planned
            - offboarded
          type: string
        teams:
          description: Teams the user belongs to
          items:
            type: string
          type: array
        updated_at:
          description: Last update timestamp
          format: date-time
          type: string
      required:
        - id
        - first_name
        - last_name
        - email
        - status
      title: User
      type: object
    Error:
      description: Standard error response
      example:
        error: not_found
        message: Resource not found
      properties:
        error:
          description: Error code
          example: not_found
          type: string
        errors:
          additionalProperties:
            items:
              type: string
            type: array
          description: Field-specific validation errors (only for 422 responses)
          example:
            email:
              - has invalid format
            first_name:
              - can't be blank
          type: object
        message:
          description: Human-readable error message
          example: Resource not found
          type: string
      required:
        - error
        - message
      title: Error
      type: object
  securitySchemes:
    bearer:
      description: >-
        Bearer token authentication. Pass your AccessOwl API token in the
        `Authorization` header as `Bearer <token>`.
      scheme: bearer
      type: http

````