add_iam_policy_binding
Grant IAM roles to specific users or service accounts in a GCP project by adding policy bindings. Specify project ID, role, and member to assign access permissions securely.
Instructions
Add an IAM policy binding to a GCP project.
Args:
project_id: The ID of the GCP project
role: The role to grant (e.g., "roles/compute.admin")
member: The member to grant the role to (e.g., "user:email@example.com", "serviceAccount:name@project.iam.gserviceaccount.com")
Returns:
Result of the policy binding operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
member | Yes | ||
project_id | Yes | ||
role | Yes |
Input Schema (JSON Schema)
{
"properties": {
"member": {
"title": "Member",
"type": "string"
},
"project_id": {
"title": "Project Id",
"type": "string"
},
"role": {
"title": "Role",
"type": "string"
}
},
"required": [
"project_id",
"role",
"member"
],
"title": "add_iam_policy_bindingArguments",
"type": "object"
}