get_user_access
List permissions a user can perform on an OpenShift 4 cluster or namespace using oc auth can-i --list --as. Specify username and optional namespace to scope access checks.
Instructions
List all actions a user can perform using 'oc auth can-i --list --as='. Specify namespace to scope the check; omit for cluster-wide actions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>"
},
"name": "get_user_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | ||
| username | Yes | ||
| namespace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |