Return root and cPanel accounts

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

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 list_users

Response samples

Content type
application/json
{
  • "data": {
    • "users": [
      • "example",
      • "root"
      ]
    },
  • "metadata": {
    • "command": "list_users",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}