jms_permission_grant
Grants JumpServer users or user groups access to assets or nodes, with account, action, and expiry options. Run with confirm=false to preview accounts and require explicit approval before confirming.
Instructions
Grant a JumpServer User (or User Group) access to an Asset (or Node). Always run with confirm=false first to preview available accounts on the asset, ask the user which account (root/ubuntu/@ALL), actions (connect/transfer/all), and expiry duration they want, and only set confirm=true after explicit user approval.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "jms_permission_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Optional temporary access duration in days | |
| node | No | Target asset tree node (name or ID) | |
| user | No | Target user (username, name, or ID) | |
| asset | No | Target server asset (name, IP, or ID) | |
| hours | No | Optional temporary access duration in hours | |
| actions | No | Allowed session actions: 'connect', 'readonly', 'transfer', 'all', or comma-separated ('connect,upload,download,copy,paste') | connect |
| comment | No | ||
| confirm | No | Set to true ONLY after explicit user confirmation. | |
| accounts | No | Comma-separated system account usernames (e.g. 'root', 'ubuntu', 'root,ubuntu', or '@ALL') | @ALL |
| rule_name | No | Optional existing or custom permission rule name | |
| user_group | No | Target User Group (name or ID) |