update_user
Modify an existing pfSense local user by ID, including username, password, privileges, certificates, expiration, IPsec PSK, SSH keys, and disabled status.
Instructions
Update an existing pfSense local user by ID
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": {
"user_id": "<user_id>"
},
"name": "update_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cert | No | List of certificate refids to associate with the user (replaces existing linkage on the user record) | |
| name | No | Username (login name) | |
| priv | No | List of privileges to assign (replaces existing) | |
| descr | No | User description / full name | |
| expires | No | Account expiration date (MM/DD/YYYY format) | |
| user_id | Yes | User ID (array index from search_users) | |
| disabled | No | Whether the user account is disabled | |
| ipsecpsk | No | IPsec Pre-Shared Key | |
| password | No | New password | |
| authorizedkeys | No | SSH authorized public keys (base64 encoded) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||