Google Workspace · Arazzo Workflow

Google Workspace Inspect the Org Unit Tree

Version 1.0.0

List all child org units under a path, then read the first one in detail.

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

Provider

google-workspace

Workflows

inspect-org-unit-tree
List child org units under a path and read the first in detail.
Lists organizational units beneath the supplied path, then reads the first returned unit by its path to capture its full detail.
2 steps inputs: accessToken, customerId, orgUnitPath outputs: firstChildId, firstChildName, organizationUnits
1
listOrgUnits
List all child organizational units beneath the supplied path.
2
readFirstChild
Read the first returned child organizational unit in full to capture its parent path and id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Workspace Inspect the Org Unit Tree
  summary: List all child org units under a path, then read the first one in detail.
  description: >-
    Explores the organizational unit hierarchy. The workflow lists every
    organizational unit beneath a starting path, then reads the first returned
    unit in full to capture its parent path and id. This is a read-only
    discovery flow useful for building an admin tree view. 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
sourceDescriptions:
- name: orgunitsApi
  url: ../openapi/google-workspace-orgunits-api-openapi.yml
  type: openapi
workflows:
- workflowId: inspect-org-unit-tree
  summary: List child org units under a path and read the first in detail.
  description: >-
    Lists organizational units beneath the supplied path, then reads the first
    returned unit by its path to capture its full detail.
  inputs:
    type: object
    required:
    - accessToken
    - orgUnitPath
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token with the admin.directory.orgunit.readonly scope.
      orgUnitPath:
        type: string
        description: The starting org unit path (minus leading slash) to list children under.
      customerId:
        type: string
        description: Customer account id or the my_customer alias.
        default: my_customer
  steps:
  - stepId: listOrgUnits
    description: >-
      List all child organizational units beneath the supplied path.
    operationId: listOrgUnits
    parameters:
    - name: customerId
      in: path
      value: $inputs.customerId
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: type
      in: query
      value: children
    - name: orgUnitPath
      in: query
      value: $inputs.orgUnitPath
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      organizationUnits: $response.body#/organizationUnits
      firstChildPath: $response.body#/organizationUnits/0/orgUnitPath
  - stepId: readFirstChild
    description: >-
      Read the first returned child organizational unit in full to capture its
      parent path and id.
    operationId: getOrgUnit
    parameters:
    - name: customerId
      in: path
      value: $inputs.customerId
    - name: orgUnitPath
      in: path
      value: $steps.listOrgUnits.outputs.firstChildPath
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgUnitId: $response.body#/orgUnitId
      name: $response.body#/name
      parentOrgUnitPath: $response.body#/parentOrgUnitPath
  outputs:
    organizationUnits: $steps.listOrgUnits.outputs.organizationUnits
    firstChildId: $steps.readFirstChild.outputs.orgUnitId
    firstChildName: $steps.readFirstChild.outputs.name

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-inspect-org-unit-tree-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.