The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to suspend an account using xmlapi class

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

  1. kavos1332

    kavos1332 Active Member

    Joined:
    Dec 17, 2012
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi.

    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

    Joined:
    Dec 6, 2008
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Pune, India
    cPanel Access Level:
    DataCenter Provider
    Hello,
    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
     
Loading...

Share This Page