Description
This function lists a MySQL® database user's privileges.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
user |
string |
Required The database user's name. |
A MySQL user on the cPanel account. Important: If database prefixing is enabled, you must prefix this value with the account prefix and an underscore (_). For example, for the dbuser user on the user cPanel account, pass in a value of user_dbuser. |
dbuser |
database |
string |
Required The database. |
A MySQL database on the cPanel account. |
12345luggage |
Returns
Return |
Type |
Description |
Possible values |
Example |
data |
array |
An array of privileges. Note: If the user database user does not have privileges on thedatabase database, this array will return empty. |
|
CREATE |