GhadaFye

Member
Jan 5, 2023
8
0
1
Canada
cPanel Access Level
DataCenter Provider
Hello,

One of our developers is running into an issue where they were not able to determine if a user is a WHM Administrator vs a WHM Reseller. In a WHM plugin, how does one do that?
Similarly, is it possible for a cPanel account to access settings set by their Reseller/Owner?

Thanks in advance.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,329
2,102
363
cPanel Access Level
Root Administrator
Hey there! We have a few options that may be helpful. The first would be this command, which lists reseller's accounts:


The other is this call, which would show the account owner. If the account owner is anything other than "root" that would indicate it is under a reseller:

 
  • Like
Reactions: GhadaFye