Okta · Arazzo Workflow

Okta Deactivate and Delete User

Version 1.0.0

Deactivate a user and then permanently delete the deprovisioned account.

1 workflow 1 source API 1 provider
View Spec View on GitHub IdentityWorkforce IdentityCustomer IdentityAuthenticationAuthorizationSingle Sign-OnMulti-Factor AuthenticationIdentity GovernancePrivileged AccessAI AgentsCross-App AccessMCPPlatformArazzoWorkflows

Provider

okta

Workflows

deactivate-and-delete-user
Deactivate then permanently delete a user.
Deactivates a user to move them to DEPROVISIONED, then permanently deletes the account.
2 steps inputs: oktaApiToken, userId outputs: deletedUserId
1
deactivateUser
Deactivate the user, moving them to a DEPROVISIONED status.
2
deleteUser
Permanently delete the now deprovisioned user. This action cannot be recovered.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Okta Deactivate and Delete User
  summary: Deactivate a user and then permanently delete the deprovisioned account.
  description: >-
    The two-phase Okta account removal flow. A user must reach a DEPROVISIONED
    status before it can be permanently deleted, so this workflow first
    deactivates the user and then issues the delete call against the now
    deprovisioned account. The user id is supplied once and reused across both
    lifecycle steps. Every step spells out its request inline, including the
    SSWS API token header, so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: userApi
  url: ../openapi/okta-user-api-openapi.yml
  type: openapi
workflows:
- workflowId: deactivate-and-delete-user
  summary: Deactivate then permanently delete a user.
  description: >-
    Deactivates a user to move them to DEPROVISIONED, then permanently deletes
    the account.
  inputs:
    type: object
    required:
    - oktaApiToken
    - userId
    properties:
      oktaApiToken:
        type: string
        description: Okta API token used for the SSWS Authorization header.
      userId:
        type: string
        description: The id of the user to deactivate and delete.
  steps:
  - stepId: deactivateUser
    description: >-
      Deactivate the user, moving them to a DEPROVISIONED status.
    operationId: deactivateUser
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: userId
      in: path
      value: $inputs.userId
    successCriteria:
    - condition: $statusCode == 200
  - stepId: deleteUser
    description: >-
      Permanently delete the now deprovisioned user. This action cannot be
      recovered.
    operationId: deactivateOrDeleteUser
    parameters:
    - name: Authorization
      in: header
      value: SSWS $inputs.oktaApiToken
    - name: userId
      in: path
      value: $inputs.userId
    successCriteria:
    - condition: $statusCode == 202
  outputs:
    deletedUserId: $inputs.userId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/okta-deactivate-and-delete-user-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.