User Tools

Site Tools


cli-list-users

List Users from CLI

cyberpanel listUsers

This produces a JSON output.

{
   "status":1,
   "fetchStatus":1,
   "error_message":"None",
   "data":"[{\"id\": 3, \"name\": \"cyberpanel\", \"owner\": \"admin\", \"acl\": \"user\", \"diskUsage\": \"0MB\", \"websites\": 10, \"state\": \"SUSPENDED\"},{\"id\": 5, \"name\": \"cyberpanel1\", \"owner\": \"admin\", \"acl\": \"user\", \"diskUsage\": \"0MB\", \"websites\": 10, \"state\": \"ACTIVE\"}]"
}

If status is zero, there is some problem fetching the users.

cli-list-users.txt · Last modified: 2020/06/02 13:40 by hope