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!

is there a way to figure if a user is a reseller in the user creation hooks?

Discussion in 'General Discussion' started by ysimard, Jun 3, 2008.

  1. ysimard

    ysimard Registered
    PartnerNOC

    Joined:
    Apr 16, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hi

    I would like to know if there is a way to know if the created user is a reseller in the post account creation hook (without looking at the selected package)?

    also is there a post package creation hook?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    One way to do this would be to call the xml-api listresellers function. See if the username is in the list of resellers, if it is then it is a reseller.

    If there is one, I am not aware of it.
     
Loading...

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