This function grants all privileges for a PostgreSQL® database to a database user.
Important:
When you disable the PostgreSQL role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Postgresql \ grant_all_privileges \ user='example_dbuser' \ database='example_database'
{- "apiversion": 3,
- "func": "grant_all_privileges",
- "module": "Postgresql",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}