---
title: "Deactivate an external user"
url: "https://developers.vzconnect.com/apis/user-api/versions/8058c80f-08ad-4baf-8fda-034794ba017a/operations/PUT__users_external_externalid_deactivate"
---

> Full API specification: https://developers.vzconnect.com/apis/user-api/versions/8058c80f-08ad-4baf-8fda-034794ba017a.md

# Deactivate an external user

`PUT` `/cmd/v1/users/external/{externalId}/deactivate`

Operation ID: `PUT__users_external_externalid_deactivate`

Deactivates an existing user identified by their external system ID. The user record is not deleted; it is marked as inactive and will no longer have access to the REVEAL system. This is a soft-delete operation.

## Path parameters

- `externalId` (string, required) - The unique identifier for the user in the external system to deactivate.

## Request body (required)

Content types: `application/json`

## Responses

- `204` - Successfully deactivated the external user.
- `400` - Bad request. The request body is invalid.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `404` - The specified external user was not found.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: User API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/users/external/{externalId}/deactivate:
    put:
      tags:
        - User API
      summary: Deactivate an external user
      description: Deactivates an existing user identified by their external system
        ID. The user record is not deleted; it is marked as inactive and will no
        longer have access to the REVEAL system. This is a soft-delete
        operation.
      operationId: PUT__users_external_externalid_deactivate
      parameters:
        - name: externalId
          in: path
          required: true
          description: The unique identifier for the user in the external system to
            deactivate.
          schema:
            type: string
          example: hr_system:emp-1042
      requestBody:
        description: Required request body. Set Deactivate to true to deactivate the
          user. If Deactivate is false the request makes no change and still
          returns 204.
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeactivateInput"
            example:
              Deactivate: true
      responses:
        "204":
          description: Successfully deactivated the external user.
          content:
            application/json: {}
        "400":
          description: Bad request. The request body is invalid.
          content:
            application/json: {}
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
          content:
            application/json: {}
        "404":
          description: The specified external user was not found.
          content:
            application/json: {}
        "500":
          description: Internal server error. An unexpected error occurred on the server.
          content:
            application/json: {}
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/users/external/[^/]+/deactivate/?$
components:
  schemas:
    DeactivateInput:
      type: object
      description: The request body used to flag a user as deactivated.
      required:
        - Deactivate
      properties:
        Deactivate:
          type: boolean
          description: Set to true to flag the user as deactivated within the REVEAL
            account.
          example: true
```
