gcp-iam-test-project-permissions
Verify specific user permissions on a Google Cloud project by testing access to listed IAM roles, ensuring compliance and security.
Instructions
Test which permissions the current caller has on a Google Cloud project
Input Schema
Name | Required | Description | Default |
---|---|---|---|
permissions | Yes | List of permissions to test (e.g., ["resourcemanager.projects.get", "compute.instances.list"]) | |
project | No | Project ID (defaults to current project) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"permissions": {
"description": "List of permissions to test (e.g., [\"resourcemanager.projects.get\", \"compute.instances.list\"])",
"items": {
"type": "string"
},
"type": "array"
},
"project": {
"description": "Project ID (defaults to current project)",
"type": "string"
}
},
"required": [
"permissions"
],
"type": "object"
}