Return cPanel account system privileges

This function retrieves the current user's Access Control List (ACL) privileges.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/myprivs
Request samples
whmapi1 --output=jsonpretty \
  myprivs
Response samples
application/json
{
  • "data": {
    • "privileges": [
      • {
        • "acct-summary": 0,
        • "add-pkg": 0,
        • "add-pkg-ip": 0,
        • "add-pkg-shell": 0,
        • "all": 0,
        • "allow-addoncreate": 0,
        • "allow-emaillimits-pkgs": 0,
        • "allow-parkedcreate": 0,
        • "allow-shell": 0,
        • "allow-unlimited-bw-pkgs": 0,
        • "allow-unlimited-disk-pkgs": 0,
        • "allow-unlimited-pkgs": 0,
        • "basic-system-info": 0,
        • "basic-whm-functions": 0,
        • "clustering": 0,
        • "cors-proxy-get": 0,
        • "cpanel-api": 0,
        • "cpanel-integration": 0,
        • "create-acct": 0,
        • "create-dns": 0,
        • "create-user-session": 0,
        • "demo-setup": 0,
        • "digest-auth": 0,
        • "edit-account": 0,
        • "edit-dns": 0,
        • "edit-mx": 0,
        • "edit-pkg": 0,
        • "file-restore": 0,
        • "generate-email-config": 0,
        • "kill-acct": 0,
        • "kill-dns": 0,
        • "limit-bandwidth": 0,
        • "list-accts": 0,
        • "list-pkgs": 0,
        • "locale-edit": 0,
        • "mailcheck": 0,
        • "manage-api-tokens": 0,
        • "manage-dns-records": 0,
        • "manage-oidc": 0,
        • "manage-styles": 0,
        • "mysql-info": 0,
        • "news": 0,
        • "ns-config": 0,
        • "park-dns": 0,
        • "passwd": 0,
        • "quota": 0,
        • "rearrange-accts": 0,
        • "resftp": 0,
        • "restart": 0,
        • "show-bandwidth": 0,
        • "ssl": 0,
        • "ssl-buy": 0,
        • "ssl-gencrt": 0,
        • "ssl-info": 0,
        • "stats": 0,
        • "status": 0,
        • "suspend-acct": 0,
        • "thirdparty": 0,
        • "track-email": 0,
        • "upgrade-account": 0,
        • "viewglobalpackages": 0
        }
      ]
    },
  • "metadata": {
    • "command": "myprivs",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}