> ## 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.

# Deactivate

> Desativa um usuario, impedindo login futuro.

Requer usuario autenticado com role admin. Nao remove o registro, apenas
marca is_active como falso; um usuario inativo some das listagens e da
consulta por id. Um admin nao pode desativar a propria conta (403).



## OpenAPI

````yaml https://api.vertgroup.com.br/openapi.json delete /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}:
    delete:
      tags:
        - 02.Identity - User
      summary: Deactivate
      description: |-
        Desativa um usuario, impedindo login futuro.

        Requer usuario autenticado com role admin. Nao remove o registro, apenas
        marca is_active como falso; um usuario inativo some das listagens e da
        consulta por id. Um admin nao pode desativar a propria conta (403).
      operationId: deactivate_identity_users__user_id__delete
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: User Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````