capabilities.work

Create an Org Unit and Assign a User

A 3-step recipe with Google Workspace. We can help you get access.

Recipe · 3 steps

Create an Org Unit and Assign a User

with Google Workspace · Identity & Access Management

Create an org unit and move a user into it.

  1. Create the organizational unit under the supplied parent path.
  2. Patch the user's orgUnitPath to the newly created organizational unit.
  3. Read the user back to confirm the orgUnitPath now points at the new organizational unit.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with the orgunit and user scopes.
  • name: The name of the new organizational unit.
  • parentOrgUnitPath: The parent org unit path under which to create the new unit.
  • userKey: Primary email, alias, or unique id of the user to assign.
  • description: Description for the new organizational unit.
  • customerId: Customer account id or the my_customer alias.
For your developer

Arazzo workflow google-workspace:create-org-unit-and-assign-user, 3 operations: insertOrgUnit → patchUser → getUser. Specs on APIs.io.