POST /api/v1/users/{userId}/lifecycle/deactivate

Deactivates a User.

This operation can only be performed on Users that do not have a DEPROVISIONED status.

Important: Deactivating a User is a destructive operation. The User is deprovisioned from all assigned apps, which might destroy their data such as email or files. This action cannot be recovered!

You can also perform user deactivation asynchronously. To invoke asynchronous user deactivation, pass an HTTP header Prefer: respond-async with the request.

Servers

Path parameters

Name Type Required Description
userId String Yes

ID of an existing Okta user

Request headers

Name Type Required Description
Prefer String No

Request asynchronous processing

Possible values:

  • "respond-async"

Query parameters

Name Type Required Description
sendEmail Boolean No

Sends a deactivation email to the admin if true

Default value: false

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.