get_role_permissions
Retrieve detailed IAM role information, including permissions, for roles in GCP. Specify a role name or project ID for custom roles to analyze access controls systematically.
Instructions
Get detailed information about an IAM role, including its permissions.
Args:
role_name: The name of the role (e.g., "roles/compute.admin" or "projects/my-project/roles/myCustomRole")
project_id: Optional project ID for custom roles. Not needed if role_name is fully qualified.
Returns:
Detailed information about the IAM role
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | No | ||
role_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"project_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Project Id"
},
"role_name": {
"title": "Role Name",
"type": "string"
}
},
"required": [
"role_name"
],
"title": "get_role_permissionsArguments",
"type": "object"
}