- Plesk Onyx for Linux
Multiple subscriptions are set up under one customer in Plesk;
At least one of the subscriptions has Ability to change mail settings permission disabled in Subscriptions > example.com > Customize > Permissions tab;
API request of changing the mail settings of the subscription that has Ability to change mail settings permission enabled fails:
CONFIG_TEXT: <?xml version="1.0" encoding="UTF-8"?>
This is a Plesk bug with ID PPPM-9349 that is planned to be fixed in one of the future product updates.
As a workaround, grant the ability to change mail settings to all customer's subscriptions:
Note: The modified subscriptions will be locked
Via Plesk UI:
- Log in to Plesk.
- Grant the Ability to change mail settings permission to all customer's subscriptions at Subscriptions > example.com > Customize > Permissions tab.
Via the command-line interface:
Connect to the server via SSH.
Find the customer's ID in Plesk database:
# plesk db -Ne "select id from clients where pname='John Doe';"
Create a list of subscriptions that belong to the customer using the id from the previous step:
# plesk db -Ne "select name from domains where cl_id=2;" > domains.txt
Grant the Ability to change mail settings permission to the domains from the list generated on the previous step:
# cat domains.txt | while read i; do plesk bin subscription_settings -u $i -manage_mail_settings true; done