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.

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:
    1
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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