Set project IAM policy
gcp_set_project_iam_policyReplace the entire IAM policy for a GCP project, overwriting all existing role bindings. Fetch the current policy first to preserve bindings you want to keep.
Instructions
Replaces the entire IAM policy for a project. Prefer gcp_add_project_iam_binding / gcp_remove_project_iam_binding for a single role change — this overwrites everything, so fetch with gcp_get_project_iam_policy first if you need to preserve existing bindings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bindings | Yes | Full replacement list of role bindings | |
| projectId | No | GCP project id; defaults to GOOGLE_CLOUD_PROJECT env var if omitted |