• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Reseller Account: Permission Denied, only with "webspace/switch-subscription"

NAMDUONGNZ

New Pleskian
To demonstrate the problem I do 2 requests using a reseller account to a Plesk 11.0 server.

Why it says "Permission denied" while my reseller account has permission to do API call? All other API methods work, except webspace/switch-subscription

1> Request
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<service-plan>
<get>
<filter>
<name>Enterprise Package</name>
</filter>
</get>
</service-plan>
</packet>

1> Response
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<service-plan>
<get>
<result>
<status>ok</status>
<id>14</id>
<name>Enterprise Package</name>
<guid>3565fd31-fb26-da39-ed34-b6cdec18f679</guid>
<external-id/>
<owner-id>3</owner-id>
<mail>
<nonexistent-user>
<reject/>
</nonexistent-user>
<webmail>horde</webmail>
........................
</permissions>
<plan-items/>
<aps-filter>false</aps-filter>
<packages/>
<php-settings>
<setting>
<name>safe_mode</name>
<value>off</value>
</setting>
</php-settings>
</result>
</get>
</service-plan>
</packet>

2> Request
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<webspace>
<switch-subscription>
<filter>
<name>ddns-boyd-watt.com.au</name>
</filter>
<plan-guid>3565fd31-fb26-da39-ed34-b6cdec18f679</plan-guid>
</switch-subscription>
</webspace>
</packet>

2> Response
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<webspace>
<switch-subscription>
<result>
<status>error</status>
<errcode>1006</errcode>
<errtext>Permission denied.</errtext>
<filter-id>ddns-boyd-watt.com.au</filter-id>
<id>94</id>
</result>
</switch-subscription>
</webspace>
</packet>
 
Doesn't fix

Hi I applied the patch but It doesn't fix.

The patch is for AgentMail.php, but I having problem with AgentWebSpace.php
 
Have you tried to use admin's account instead of reseller's?
 
Hi,
I am having a similar problem, only difference is that for the switch-subscription, I am getting the error: "There is no such a service plan". I am using API RPC. This works fine if the customer is subscribed to the Administrator account. However, if I change the subscription to a Reseller, I get this "There is no such a service plan" error. Could you please suggest?

Thanks a lot.
 
Back
Top