update_user
Modify user details like name, email, roles, or status in Nginx Proxy Manager to maintain accurate access control and user management.
Instructions
Update an existing NPM user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | The ID of the user to update | |
| name | No | ||
| nickname | No | ||
| No | |||
| roles | No | ||
| is_disabled | No |
Implementation Reference
- src/npm_mcp/server.py:499-505 (handler)Handler in server.py that processes the 'update_user' tool call, fetches the current user state, merges the updates, and calls the NPM client's update_user method.
elif name == "update_user": args = dict(arguments) user_id = args.pop("user_id") current = await npm_client.get_user(user_id) updated_data = current.model_dump() updated_data.update(args) return _model_response(await npm_client.update_user(user_id, User(**updated_data))) - src/npm_mcp/server.py:287-302 (schema)Definition of the 'update_user' tool, including its input schema, registered in the list of tools.
Tool( name="update_user", description="Update an existing NPM user", inputSchema={ "type": "object", "properties": { "user_id": {"type": "integer", "description": "The ID of the user to update"}, "name": {"type": "string"}, "nickname": {"type": "string"}, "email": {"type": "string"}, "roles": {"type": "array", "items": {"type": "string"}}, "is_disabled": {"type": "boolean"}, }, "required": ["user_id"], }, ),