This function lists a MySQL® database user's privileges.
Important:
When you disable the MySQL role and remote MySQL is not already configured, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Mysql \ get_privileges_on_database \ user='dbuser' \ database='mydb'
{- "apiversion": 3,
- "func": "get_privileges_on_database",
- "module": "Mysql",
- "result": {
- "data": [
- "CREATE"
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}