Skip to main content

Locate Accounts that have values outside defined packages?

Comments

9 comments

  • rpvw
    If you want to change a package or feature values for a single user, you should probably be thinking about creating a custom package/feature list, and assigning it to that individual user. That way, their values will not get annulled or reset if you change the values in another package. I don't know of any way to get a list of accounts that have had their values changed from their assigned plan or feature list but maybe cPanel staff can suggest something.
    0
  • Elizabeta
    Hello, Thank you rpvw on your answer. My situation is: I work in Internet Service Provider company, I we have defined packages for web hosting cPanel. But, if some user wants to have one additional services (like Add On domain) we can not create a new package immediately. And if I changed some values in package, this will impact to situation that some values for account will be annulled or reset. And because of that I would like to know is there a way to get a list of accounts that have had their values changed from their assigned package? Best regards, Elizabeta
    0
  • cPanelLauren
    Hi @Elizabeta I think the whmapi1 here might do the trick for you WHM API 1 Functions - get_users_features_settings - Developer Documentation - cPanel Documentation Also if you want to remove the settings at some point I believe this will work for you as well WHM API 1 Functions - remove_override_features_for_user - Developer Documentation - cPanel Documentation
    0
  • Elizabeta
    Hello Lauren, Thank you very much for your answer. I looked this links you sent me, thank you. I found command [root@cpanel log]# whmapi1 accountsummary user=paneltest --- data: acct: - backup: 1 disklimit: 2000M diskused: 65M domain: example.com email: eli*******@gmail.com inodeslimit: unlimited inodesused: 1541 ip: 212.*.*.* ipv6: [] is_locked: 0 legacy_backup: 1 mailbox_format: maildir max_defer_fail_percentage: unlimited max_email_per_hour: unlimited max_emailacct_quota: unlimited maxaddons: 2 maxftp: 5 maxlst: unlimited maxparked: 6 maxpop: 6 maxsql: 4 maxsub: 6 min_defer_fail_to_trigger_protection: 5 outgoing_mail_hold: 0 outgoing_mail_suspended: 0 owner: root partition: home plan: paneltest shell: /usr/local/cpanel/bin/noshell startdate: 18 Mar 29 12:17 suspended: 0 suspendreason: not suspended suspendtime: 0 temporary: 0 theme: paper_lantern uid: 1004 unix_startdate: '1522318638' user: panel metadata: command: accountsummary reason: OK result: 1 version: 1
    This account have package paneltest, but this account have number of AddOn domain 2 (number of AddOn domain in package paneltest is 4). I do not see in this output of command even a tag that this account have value for AddOn domain 2 which is different of package value. But in WHM there is: 55609 I would like to to get a list account via command line that have had their values changed from their assigned package? Best regards, Elizabeta
    0
  • cPanelLauren
    Hi @Elizabeta The value for addon domains in the account summary is: maxaddons: 2 But this isn't really telling the overrides - for package values from what I'm finding there isn't something that will pull just that information.
    0
  • Elizabeta
    Hello Lauren, If I change another value in package paneltest (i.e. number of maxftp) and apply to all accounts, this will annull all previous values for this account (like maxaddons to package value). I would like to know is there any command to show all accounts who have different values from assigned package. Best regards, Elizabeta
    0
  • Elizabeta
    Hello, [root@cpanel log]# whmapi1 accountsummary user=paneltest --- data: acct: - backup: 1 disklimit: 2000M diskused: 65M domain: pa***.org email: eli******@gmail.com inodeslimit: unlimited inodesused: 1541 ip: 212.*.*.* ipv6: [] is_locked: 0 legacy_backup: 1 mailbox_format: maildir max_defer_fail_percentage: unlimited max_email_per_hour: unlimited max_emailacct_quota: unlimited maxaddons: 5 maxftp: 5 maxlst: unlimited maxparked: 6 maxpop: 6 maxsql: 4 maxsub: 6 min_defer_fail_to_trigger_protection: 5 outgoing_mail_hold: 0 outgoing_mail_suspended: 0 owner: root partition: home plan: paneltest shell: /usr/local/cpanel/bin/noshell startdate: 18 Mar 29 12:17 suspended: 0 suspendreason: not suspended suspendtime: 0 temporary: 0 theme: paper_lantern uid: 1004 unix_startdate: '1522318638' user: paneltest metadata: command: accountsummary reason: OK result: 1 version: 1 Now is number of maxaddons 5, and package value is 4. There is no difference in output where some values (i.e. maxaddons) exceeded or they do not have assigned package values.
    0
  • cPanelLauren
    Hi @Elizabeta I've already explained that there isn't something that will give you this information directly as you're requesting. Thanks!
    0
  • Elizabeta
    Hello Lauren, Thank you very much for your explanation. Best regards, Elizabeta
    0

Please sign in to leave a comment.