gam_admin_update_ou
Move a user or re-parent an OU to a new organizational unit path in Google Workspace. Specify target type and destination to update structure.
Instructions
Moves a user to a different OU or re-parents an OU. The caller MUST set targetType explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Validate without moving (default true). | |
| targetKey | Yes | The user primaryEmail or the OU path (e.g. "/Sales"). | |
| targetType | Yes | Whether `targetKey` identifies a user or an OU path. | |
| orgUnitPath | Yes | Destination OU path (e.g. "/Sales/Staff"). | |
| adminUserEmail | Yes | The administrator email to impersonate. |