• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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