Return root and cPanel accounts

This function lists the cPanel user accounts and the root user on the server.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/list_users
Request samples
whmapi1 --output=jsonpretty \
  list_users
Response samples
application/json
{
  • "data": {
    • "users": [
      • "example",
      • "root"
      ]
    },
  • "metadata": {
    • "command": "list_users",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}