UserManager
Subaccount Management
Return cPanel account's Subaccounts
This function lists the cPanel account's Subaccounts.
get/UserManager/list_users
Query parameters
flat0 | 1
Whether to return Subaccounts with the same name under the merge_candidates array.
- 1 - Do not return.
- 0 - Return.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "list_users",
"module": "UserManager",
"result": {
"data": [
{
"alternate_email": "user@example.com",
"avatar_url": "https://img.example.com/avatars/example.jpg",
"can_set_password": 1,
"dismissed": 1,
"dismissed_merge_candidates": [],
"domain": "example.com",
"full_username": "user@example.com",
"guid": "N4641:EXAMPLE.COM:564CC8A7:A82EA007D8348AC631C0170F9418EC1DEB0D164CC5A722A87C55EF5DD2AD98D4",
"invite_expiration": 1591718154,
"issues": [
{
"area": "quota",
"limit": 1500,
"message": "Your account is over quota.",
"service": "email",
"type": "info",
"used": 2000
}
],
"merge_candidates": [],
"parent_type": "hypothetical",
"phone_number": "+15551234567",
"real_name": "John Doe",
"services": {
"email": {
"enabled": 1,
"quota": 100
},
"ftp": {
"homedir": "/subaccount",
"quota": 100
},
"special": 1,
"webdisk": {
"homedir": "/bob",
"perms": "rw"
}
},
"type": "sub",
"username": "example"
}
],
"metadata": {
"transformed": 1
},
"status": 1
}
}