This function renames a PostgreSQL® database user.
Warning:
Postgresql::rename_user function
instead of this one.Important:
When you disable the PostgreSQL role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Postgresql \ rename_user_no_password \ oldname='dbuser' \ newname='dbuser2'
{- "apiversion": 3,
- "func": "rename_user_no_password",
- "module": "Postgresql",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}