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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,952
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,400
    Likes Received:
    1,952
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the document I provided was helpful. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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