Google Workspace · Arazzo Workflow

Google Workspace Restore a Deleted User

Version 1.0.0

Find a recently deleted user, undelete it into an org unit, and confirm.

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

Provider

google-workspace

Workflows

restore-deleted-user
Locate a deleted user and undelete it back into an org unit.
Lists deleted users to find the target id, undeletes the account into the supplied org unit path, and fetches the restored user to confirm it is no longer suspended or deleted.
3 steps inputs: accessToken, customer, orgUnitPath, userKey outputs: orgUnitPath, primaryEmail, userId
1
listDeleted
List deleted users in the customer account so the target can be confirmed as present in the recoverable window.
2
undeleteUser
Restore the deleted user account and place it into the supplied organizational unit.
3
confirmRestored
Read the restored user back to confirm the account is active again and placed in the expected org unit.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Workspace Restore a Deleted User
  summary: Find a recently deleted user, undelete it into an org unit, and confirm.
  description: >-
    Reverses an accidental deletion within the twenty-day recovery window. The
    workflow lists deleted users to locate the target by id, restores the
    account into a chosen organizational unit with the undelete operation, and
    then reads the user back to confirm it is active again. 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: restore-deleted-user
  summary: Locate a deleted user and undelete it back into an org unit.
  description: >-
    Lists deleted users to find the target id, undeletes the account into the
    supplied org unit path, and fetches the restored user to confirm it is no
    longer suspended or deleted.
  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: The unique id of the deleted user to restore.
      orgUnitPath:
        type: string
        description: Org unit path to restore the user into.
        default: /
      customer:
        type: string
        description: Customer account id or the my_customer alias.
        default: my_customer
  steps:
  - stepId: listDeleted
    description: >-
      List deleted users in the customer account so the target can be confirmed
      as present in the recoverable window.
    operationId: listUsers
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: customer
      in: query
      value: $inputs.customer
    - name: showDeleted
      in: query
      value: "true"
    - name: maxResults
      in: query
      value: 500
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      deletedUsers: $response.body#/users
  - stepId: undeleteUser
    description: >-
      Restore the deleted user account and place it into the supplied
      organizational unit.
    operationId: undeleteUser
    parameters:
    - name: userKey
      in: path
      value: $inputs.userKey
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        orgUnitPath: $inputs.orgUnitPath
    successCriteria:
    - condition: $statusCode == 204
  - stepId: confirmRestored
    description: >-
      Read the restored user back to confirm the account is active again and
      placed in the expected org unit.
    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
      primaryEmail: $response.body#/primaryEmail
      orgUnitPath: $response.body#/orgUnitPath
  outputs:
    userId: $steps.confirmRestored.outputs.userId
    primaryEmail: $steps.confirmRestored.outputs.primaryEmail
    orgUnitPath: $steps.confirmRestored.outputs.orgUnitPath

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-restore-deleted-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.