This function unlinks a service account from a subaccount.
domain required | string <domain> The subaccount's associated domain. Example: domain=example.com |
service required | string The service to unlink.
Example: service=ftp |
username required | string <username> The subaccount's username. Note: This value does not include the domain name. Example: username=example |
dismiss | integer Default: 0 Whether to dismiss the service account as a merge candidate.
Note: If any email, FTP, or Web Disk accounts use the same username, cPanel's User Manager interface (cPanel >> Home >> Preferences >> User Manager) allows you to merge those accounts into a subaccount. Example: dismiss=0 |
uapi --output=jsonpretty \ --user=username \ UserManager \ unlink_service_account \ username='example' \ domain='example.com' \ service='ftp'
{- "apiversion": 3,
- "func": "unlink_service_account",
- "module": "UserManager",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}