latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Databases
MySQL Databases

Return MySQL users

This function lists the server's database users.

Warning:

On most servers, this function returns a large amount of output. We strongly suggest that you filter and sort the output.

Important:

When you disable the MySQL/MariaDB and PostgreSQL roles and remote MySQL is not already configured, the system disables this function.

get/list_database_users

Response

HTTP Request was successful.

Example response

{
  "data": {
    "payload": [
      {
        "cpuser": "example",
        "engine": "postgresql",
        "name": "example_user1"
      }
    ]
  },
  "metadata": {
    "command": "list_database_users",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}