Auth0 · Arazzo Workflow

Auth0 Offboard User and Revoke Grants

Version 1.0.0

Find a user by email, list their authorization grants, and revoke the first grant when present.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AI AgentsAuthenticationAuthorizationFGAIdentity ManagementMCPOktaOpenID ConnectSAMLSecuritySCIMArazzoWorkflows

Provider

auth0

Workflows

offboard-user-revoke-grants
Resolve a user, list their grants, and revoke a grant when present.
Searches users by email, lists the matched user's authorization grants, and revokes the first grant found.
3 steps inputs: email outputs: matchedUserId, revokedGrantId
1
findUser
Search for a user by email address.
2
listGrants
List the authorization grants issued for the matched user.
3
revokeGrant
Delete the first authorization grant found for the user.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Auth0 Offboard User and Revoke Grants
  summary: Find a user by email, list their authorization grants, and revoke the first grant when present.
  description: >-
    A find-then-act offboarding flow that revokes a user's standing OAuth
    authorization grants. The workflow resolves the user by email, branches when
    a user is found, lists the grants issued for that user, and then branches
    again to delete the first grant when any exist. Each step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-620.20
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-620.20
      capability_name: Identity & Access Management
      spec: auth0-users-by-email-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: grantsApi
  url: ../openapi/auth0-grants-api-openapi.yml
  type: openapi
- name: usersByEmailApi
  url: ../openapi/auth0-users-by-email-api-openapi.yml
  type: openapi
workflows:
- workflowId: offboard-user-revoke-grants
  summary: Resolve a user, list their grants, and revoke a grant when present.
  description: >-
    Searches users by email, lists the matched user's authorization grants, and
    revokes the first grant found.
  inputs:
    type: object
    required:
    - email
    properties:
      email:
        type: string
        description: Email address of the user to offboard (case-sensitive).
  steps:
  - stepId: findUser
    description: >-
      Search for a user by email address.
    operationId: get_users-by-email
    parameters:
    - name: email
      in: query
      value: $inputs.email
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedUserId: $response.body#/0/user_id
    onSuccess:
    - name: userFound
      type: goto
      stepId: listGrants
      criteria:
      - context: $response.body
        condition: $.length > 0
        type: jsonpath
    - name: userMissing
      type: end
      criteria:
      - context: $response.body
        condition: $.length == 0
        type: jsonpath
  - stepId: listGrants
    description: >-
      List the authorization grants issued for the matched user.
    operationId: get_grants
    parameters:
    - name: user_id
      in: query
      value: $steps.findUser.outputs.matchedUserId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstGrantId: $response.body#/0/id
    onSuccess:
    - name: grantsExist
      type: goto
      stepId: revokeGrant
      criteria:
      - context: $response.body
        condition: $.length > 0
        type: jsonpath
    - name: noGrants
      type: end
      criteria:
      - context: $response.body
        condition: $.length == 0
        type: jsonpath
  - stepId: revokeGrant
    description: >-
      Delete the first authorization grant found for the user.
    operationId: delete_grants_by_id
    parameters:
    - name: id
      in: path
      value: $steps.listGrants.outputs.firstGrantId
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    matchedUserId: $steps.findUser.outputs.matchedUserId
    revokedGrantId: $steps.listGrants.outputs.firstGrantId

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/auth0-offboard-user-revoke-grants-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.