infomaniak_create_hosting_user
Add a new FTP or SSH user to an Infomaniak web hosting, setting login, password, access type, and home directory, with a confirmation step before creation.
Instructions
Create a new FTP / SSH user on a web hosting. Two-phase commit. Connection types: ftp (SFTP-only, no shell) or ssh (full shell + FTP). The password follows Infomaniak's default policy.
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": {
"hosting_id": "<hosting_id>",
"login": "<login>",
"password": "<password>"
},
"name": "infomaniak_create_hosting_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| login | Yes | User login WITHOUT the hosting prefix (e.g. 'audit', not 'q387gx_audit'). Alphanumeric + underscore/dash only, 1-32 chars. Infomaniak prepends the hosting prefix automatically. | |
| password | Yes | User password. Minimum 8 chars with at least one lowercase, one uppercase, one digit. Special character recommended but not required. | |
| hosting_id | Yes | Web hosting ID where the user will be created. Discover via infomaniak_list_hostings. | |
| home_directory | No | Sub-path inside the hosting the user is jailed into. Default '/' (root of the hosting). Use to scope an FTP-only user to a single site, e.g. '/sites/example.com'. | / |
| connection_type | No | Access level. `ssh` = full shell + FTP/SFTP, `ftp` = SFTP-only (no interactive shell). Default `ftp` (safer). | ftp |
| confirmation_token | No | Token from the prior plan response. Required on the apply phase only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||