build_bulk_gam_command
Constructs a GAM bulk processing command from structured inputs without executing it, returning the command string for review and later execution.
Instructions
Constructs a GAM bulk processing command from structured inputs without executing it.
Returns the full command string for review. Pass the args to validate_gam_command,
then run_gam_command if valid.
gam_command_template uses ~ColumnName for standalone column values and
~~ColumnName~~ when embedded within a larger string argument.
Example: ["update", "user", "~primaryEmail", "ou", "/Staff/~~Department~~"]
Use processing_mode 'loop' for rate-sensitive or ordered operations.
Use 'csv' for parallelized operations. Use 'tbatch' when nesting 'gam csv' inside a batch file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_rows | No | ||
| sheet_name | No | ||
| skip_field | No | ||
| match_field | No | ||
| source_type | Yes | ||
| skip_pattern | No | ||
| match_pattern | No | ||
| sheet_file_id | No | ||
| show_commands | No | ||
| operator_email | No | ||
| local_file_path | No | ||
| processing_mode | Yes | ||
| gam_command_template | Yes | ||
| redirect_to_sheet_id | No | ||
| redirect_to_local_path | No | ||
| redirect_to_sheet_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |