freeipa_sudorule_add_command
Add allowed commands or command groups to an existing sudo rule in FreeIPA.
Instructions
Add allowed commands to a sudo rule
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": {
"rule": "<rule>"
},
"name": "freeipa_sudorule_add_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | Sudo rule name | |
| commands | No | List of commands to allow (e.g., ["/usr/bin/systemctl", "/usr/bin/dnf"]) | |
| commandgroups | No | List of command groups to allow |