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 check whether cpanel user is exist using cpanel API2

Discussion in 'cPanel Developers' started by yasitha, Apr 10, 2015.

  1. yasitha

    yasitha Registered

    Joined:
    Apr 10, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sri Lanka
    cPanel Access Level:
    Root Administrator
    I want to check whether the cpanel user is exist or not using the cpanel API2. I went through the documentation but couldn't find a method.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,764
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Is there any reason you need to use cPanel API 2? If not, you can use the listaccts function for WHM API 1:

    WHM API 1 Functions - listaccts

    It allows you to search for a cPanel username to see if it exists.

    Thank you.
     
  3. yasitha

    yasitha Registered

    Joined:
    Apr 10, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sri Lanka
    cPanel Access Level:
    Root Administrator
    Hi Micheal,

    Thanks for the answer. Got it done using WHM API function you mentioned.

    Thank You.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,764
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page