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.

How to "mass change" a reseller setting for all resellers on server?

Discussion in 'General Discussion' started by electric, Oct 21, 2008.

  1. electric

    electric Well-Known Member

    Nov 5, 2001
    Likes Received:
    Trophy Points:
    Is this possible?

    In the "reseller center" we want to UNCHECK the "Allow Creation of Packages with Unlimited Diskspace" feature... for all resellers.

    Is there a way to do this through the backend with a script or something?

    Or do we have to manually edit every reseller on the server using the WHM front-end?

  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If I had a sufficient number of resellers where I was considering building a script to do this, I would first create an ACL that contained the privileges I wanted to have my resellers possess then assign that ACL to the resellers. While all of this can be scripted, my preference would be to create the ACL via the WHM interface then use a script to apply the ACL to all my resellers. I would build my script to interface with the XML-API and to use the following function call:

    See the "Using an ACL list" example for how to set a reseller to use an ACL list.

    There's much sample code floating around these forums in PHP and Perl for the APIs. However, any language that can handle XML syntax and HTTP/HTTPS requests can be used.

    If you run into any issues with our APIs, please let us know.

Share This Page