This function lists an account's PostgreSQL® database users.
Important:
When you disable the PostgreSQL role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Postgresql \ list_users
{- "apiversion": 3,
- "func": "list_users",
- "module": "Postgresql",
- "result": {
- "data": [
- "example_user1",
- "example_user2"
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}