Google Workspace · Arazzo Workflow

Google Workspace Create an Org Unit and Assign a User

Version 1.0.0

Create an organizational unit, then move a user into it and confirm.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CalendarCollaborationEmailProductivityStorageVideo ConferencingArazzoWorkflows

Provider

google-workspace

Workflows

create-org-unit-and-assign-user
Create an org unit and move a user into it.
Creates an organizational unit under the supplied parent path, patches the user's orgUnitPath to the new unit, and reads the user to confirm placement.
3 steps inputs: accessToken, customerId, description, name, parentOrgUnitPath, userKey outputs: orgUnitId, orgUnitPath, userId
1
createOrgUnit
Create the organizational unit under the supplied parent path.
2
assignUser
Patch the user's orgUnitPath to the newly created organizational unit.
3
confirmAssignment
Read the user back to confirm the orgUnitPath now points at the new organizational unit.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Workspace Create an Org Unit and Assign a User
  summary: Create an organizational unit, then move a user into it and confirm.
  description: >-
    Stands up a new organizational unit and immediately populates it. The
    workflow creates the org unit under a parent path, patches a user's
    orgUnitPath to the new unit, and reads the user back to confirm the
    assignment. 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: orgunitsApi
  url: ../openapi/google-workspace-orgunits-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/google-workspace-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-org-unit-and-assign-user
  summary: Create an org unit and move a user into it.
  description: >-
    Creates an organizational unit under the supplied parent path, patches the
    user's orgUnitPath to the new unit, and reads the user to confirm placement.
  inputs:
    type: object
    required:
    - accessToken
    - name
    - parentOrgUnitPath
    - userKey
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token with the orgunit and user scopes.
      name:
        type: string
        description: The name of the new organizational unit.
      parentOrgUnitPath:
        type: string
        description: The parent org unit path under which to create the new unit.
      userKey:
        type: string
        description: Primary email, alias, or unique id of the user to assign.
      description:
        type: string
        description: Description for the new organizational unit.
        default: ""
      customerId:
        type: string
        description: Customer account id or the my_customer alias.
        default: my_customer
  steps:
  - stepId: createOrgUnit
    description: >-
      Create the organizational unit under the supplied parent path.
    operationId: insertOrgUnit
    parameters:
    - name: customerId
      in: path
      value: $inputs.customerId
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.name
        parentOrgUnitPath: $inputs.parentOrgUnitPath
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgUnitId: $response.body#/orgUnitId
      orgUnitPath: $response.body#/orgUnitPath
  - stepId: assignUser
    description: >-
      Patch the user's orgUnitPath to the newly created organizational unit.
    operationId: patchUser
    parameters:
    - name: userKey
      in: path
      value: $inputs.userKey
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        orgUnitPath: $steps.createOrgUnit.outputs.orgUnitPath
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/id
      orgUnitPath: $response.body#/orgUnitPath
  - stepId: confirmAssignment
    description: >-
      Read the user back to confirm the orgUnitPath now points at the new
      organizational 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
      orgUnitPath: $response.body#/orgUnitPath
  outputs:
    orgUnitId: $steps.createOrgUnit.outputs.orgUnitId
    orgUnitPath: $steps.createOrgUnit.outputs.orgUnitPath
    userId: $steps.confirmAssignment.outputs.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/google-workspace-create-org-unit-and-assign-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.