Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unable to suspend an account using xmlapi class

Discussion in 'cPanel Developers' started by kavos1332, Feb 24, 2013.

  1. kavos1332

    kavos1332 Active Member

    Dec 17, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I want to suspend accounts using xmlapi class. First I search for the account to suspend by domain and get its username and then pass it to the suspendacct function. listaccts() gives me the correct username but when I pass it to suspedacct() and print the result it returns the status 0 with message "suspendacct called on an account that does not exist". The account exists and passed username is correct as have gotten from the server itself. It is notable that the account is under a reseller account and I'm authenticating api by root user. root should have access to all accounts.

    Please help me!
  2. LaceHost-Ishan

    LaceHost-Ishan Active Member

    Dec 6, 2008
    Likes Received:
    Trophy Points:
    Pune, India
    cPanel Access Level:
    DataCenter Provider
    I have tested this API in our CentralCP software just now -

    I have root access
    I am suspending an account owned by a reseller
    cPanel returns success and suspends the account
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice