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

# Get

> Busca um usuario pelo id.

Requer usuario autenticado. Um admin pode consultar qualquer usuario; um
employee so pode consultar o proprio registro (403 caso contrario).



## OpenAPI

````yaml https://api.vertgroup.com.br/openapi.json get /identity/users/{user_id}
openapi: 3.1.0
info:
  title: SGG Automation — DOM Med
  version: 1.0.0
servers: []
security: []
paths:
  /identity/users/{user_id}:
    get:
      tags:
        - 02.Identity - User
      summary: Get
      description: |-
        Busca um usuario pelo id.

        Requer usuario autenticado. Um admin pode consultar qualquer usuario; um
        employee so pode consultar o proprio registro (403 caso contrario).
      operationId: get_identity_users__user_id__get
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UserDetailResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Identificador unico do usuario.
          examples:
            - 3fa85f64-5717-4562-b3fc-2c963f66afa6
        email:
          type: string
          title: Email
          description: Email do usuario.
          examples:
            - ana.souza@dommed.com.br
        role:
          allOf:
            - $ref: '#/components/schemas/UserRole'
          description: 'Papel do usuario no Hub: admin ou employee.'
          examples:
            - employee
        is_active:
          type: boolean
          title: Is Active
          description: Se falso, o usuario foi desativado e nao consegue mais autenticar.
          examples:
            - true
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Data e hora de criacao do usuario, em UTC.
          examples:
            - '2026-08-20T14:32:00Z'
      type: object
      required:
        - id
        - email
        - role
        - is_active
        - created_at
      title: UserDetailResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserRole:
      type: string
      enum:
        - admin
        - employee
      title: UserRole
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````