• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Plesk Api error creating USER

tecnopolis

New Pleskian
I have plesk 17.8.11 Update 35

Dear friends today I try use API to create a subscription and user to acces control panel, I use the next packet, have two zones, "Webspace" and "User", Webspace works fine, create a subscription, assing the plan, but return a error for "user"

THE ERROR

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.6.0">
<webspace>
<add>
<result>
<status>ok</status>
<id>7</id>
<guid>f200f3ad-7472-403a-a481-71d689488501</guid>
</result>
</add>
</webspace>
<user>
<add>
<result>
<status>error</status>
<errcode>1017</errcode>
<errtext>This feature is no longer supported.</errtext>
</result>
</add>
</user>

</packet>

----------------------------------------------------

THE PACKET

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.6.0">
<webspace>
<add>
<gen_setup>
<name>zumotec.com</name>
<ip_address>64.37.58.18</ip_address>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>zumotec</value>
</property>
<property>
<name>ftp_password</name>
<value>c63At6Xw</value>
</property>
<ip_address>64.37.58.18</ip_address>
</vrt_hst>
</hosting>
<limits>
<limit>
<name>expiration</name>
<value>1552021200</value>
</limit>
</limits>
<plan-name>01 - Plan 1000MB</plan-name>
</add>
</webspace>
<user>
<add>
<gen-info>
<login>zumotec.com</login>
<passwd>Cm1Tqgx</passwd>
<name>zumotec.com</name>
</gen-info>
<roles>
<name>WebMaster</name>
</roles>
</add>
</user>

</packet>
 
Last edited:
Dear friend, do you know which one I'm replacing or how can I create the users using the API with some alternative method?
 
As a possible solution, you can create mailbox with cp-access true. That is, instead of creating just a user, create a mailbox and user with it. Just something like:

Code:
<mail>
<create>
   <filter>
      <site-id>2</site-id>
      <mailname>
          <name>cp-user</name>
          <cp-access>true</cp-access>
          <mailbox>
                <enabled>false</enabled>
          </mailbox>
          <password>
                <value>test123</value>
                <type>plain</type>
          </password>
 
      </mailname>
   </filter>
</create>
</mail>
 
Back
Top