capabilities.work

Move a User to Another Org Unit

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

Recipe · 3 steps

Move a User to Another Org Unit

with Google Workspace · Identity & Access Management

Confirm a destination org unit and move a user into it.

  1. Read the destination organizational unit to confirm it exists before moving the user into it.
  2. Patch the user's orgUnitPath to the confirmed destination org unit so the account is reorganized.
  3. Read the user back to confirm the orgUnitPath now reflects the new organizational unit.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with the admin.directory.user and orgunit scopes.
  • userKey: Primary email, alias, or unique id of the user to move.
  • orgUnitPath: The destination org unit path (minus the leading slash) to read and move into.
  • customerId: Customer account id or the my_customer alias.
For your developer

Arazzo workflow google-workspace:move-user-org-unit, 3 operations: getOrgUnit → patchUser → getUser. Specs on APIs.io.