• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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