Google Workspace · Arazzo Workflow

Google Workspace Offboard a User

Version 1.0.0

Suspend a departing user, sign them out of all sessions, and confirm the state.

1 workflow 1 source API 1 provider
View Spec View on GitHub CalendarCollaborationEmailProductivityStorageVideo ConferencingArazzoWorkflows

Provider

google-workspace

Workflows

offboard-user
Suspend a user, revoke their sessions, and verify the suspension.
Patches the user resource to suspended, signs the user out of all sessions to revoke active access, and fetches the user to confirm the suspended flag is set.
3 steps inputs: accessToken, suspensionReason, userKey outputs: suspended, userId
1
suspendUser
Patch the user to a suspended state so they can no longer sign in, while leaving the rest of the profile intact.
2
signOutUser
Sign the user out of all active web and device sessions and reset their sign-in cookies to immediately revoke access.
3
confirmSuspended
Read the user back to confirm the suspended flag is set before completing the offboarding flow.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Workspace Offboard a User
  summary: Suspend a departing user, sign them out of all sessions, and confirm the state.
  description: >-
    A safe offboarding flow that does not delete the account outright. The
    workflow patches the user to a suspended state, signs the user out of every
    active web and device session to immediately revoke access, and then reads
    the user back to confirm the suspension took effect. Every 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: google-workspace-users-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: usersApi
  url: ../openapi/google-workspace-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: offboard-user
  summary: Suspend a user, revoke their sessions, and verify the suspension.
  description: >-
    Patches the user resource to suspended, signs the user out of all sessions
    to revoke active access, and fetches the user to confirm the suspended flag
    is set.
  inputs:
    type: object
    required:
    - accessToken
    - userKey
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token with the admin.directory.user scope.
      userKey:
        type: string
        description: Primary email, alias, or unique id of the user to offboard.
      suspensionReason:
        type: string
        description: Optional note recorded as the reason for suspension.
        default: Offboarded
  steps:
  - stepId: suspendUser
    description: >-
      Patch the user to a suspended state so they can no longer sign in, while
      leaving the rest of the profile intact.
    operationId: patchUser
    parameters:
    - name: userKey
      in: path
      value: $inputs.userKey
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        suspended: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/id
      suspended: $response.body#/suspended
  - stepId: signOutUser
    description: >-
      Sign the user out of all active web and device sessions and reset their
      sign-in cookies to immediately revoke access.
    operationId: signOutUser
    parameters:
    - name: userKey
      in: path
      value: $inputs.userKey
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 204
  - stepId: confirmSuspended
    description: >-
      Read the user back to confirm the suspended flag is set before completing
      the offboarding flow.
    operationId: getUser
    parameters:
    - name: userKey
      in: path
      value: $inputs.userKey
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/id
      suspended: $response.body#/suspended
  outputs:
    userId: $steps.confirmSuspended.outputs.userId
    suspended: $steps.confirmSuspended.outputs.suspended

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/google-workspace-offboard-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.