Role Management¶
oQtopus provides a dedicated dialog for inspecting and managing the PostgreSQL roles defined by a module.
Opening the dialog¶
In the Module tab, when the installed version matches the selected version, the Maintain view is displayed. Click Check Roles to open the role management dialog.

Role inventory¶
The dialog shows a tree with four sections:
Module roles¶
The roles defined in the module's PUM configuration, grouped by suffix (e.g. _od, _sys).
Each role shows its status:
- ✓ OK — the role exists and has the expected permissions.
- Missing — the role does not exist in the database.
- Permissions mismatch — the role exists but its grants do not match the configuration.
Grantee roles¶
Users that have been granted membership in one or more module roles.
Users¶
Other users in the database that could potentially be granted access to the module.
Unknown roles¶
Roles that have access to the module's schemas but are not part of the module configuration. These may be leftover roles from a previous installation or manually created roles.
Actions¶
Toolbar buttons¶
- Create and grant roles — create all missing module roles (optionally with a suffix) and grant the configured schema permissions.
- Create user — create a new PostgreSQL user (a role with LOGIN privilege) with an optional password.
- Configure database access — opens a dialog to manage
CONNECTprivileges on the database (see below).
Context menu (right-click)¶
Right-click on a role or group header to access:
- Grant to — grant a module role to a user.
- Revoke from — revoke membership from a specific user.
- Revoke permissions — remove all schema permissions from a role.
- Drop role — drop a role from the database.
- Grant all to / Drop all roles — bulk operations on an entire group.
Right-click on a user to access:
- Grant role — grant a module role to the user.
- Revoke role — revoke a module role from the user.
- Drop user — drop the user from the database.
Automatic role creation during install/upgrade
Roles can also be created automatically during module installation or upgrade by enabling the Create and grant roles option in the install/upgrade dialog. The role management dialog is useful for post-installation adjustments.
Configure database access¶
The Configure database access button opens a dedicated dialog for managing
CONNECT privileges on the current database.

By default, PostgreSQL grants CONNECT to the PUBLIC pseudo-role, meaning
any user on the server can connect to every database. This dialog lets you
tighten that:
- PUBLIC — a checkbox at the top controls whether all users can connect. When checked, individual role checkboxes are disabled (greyed out) because they are redundant — everyone already has access.
- Module roles — when PUBLIC is unchecked, you can grant or revoke
CONNECTfor each existing module role individually. - Other roles — any non-module roles that have an explicit
CONNECTgrant are also listed so you can revoke them if needed.
Click Apply to execute the changes. The dialog stays open so you can make further adjustments. Changes take effect immediately on the server.