Skip to main content
Nothing here touches the server on its own. A privilege you select, a password you set, an account you drop: all of it stages until you open the review sheet, read the exact GRANT and REVOKE statements, and press Execute. Available on MySQL, MariaDB, PostgreSQL, PGlite, SQL Server, and Oracle. Open it from Database > Users & Roles; the command is dimmed on every other connection.
Users and Roles tab with the account list, object tree, and privilege checklistUsers and Roles tab with the account list, object tree, and privilege checklist

Users & Roles: accounts on the left, objects in the middle, privileges on the right

Create a read-only account

1

Create the account

Click + under the account list. The sheet asks for a kind (User or Role), a name, a host on MySQL and MariaDB, and a password; Generate produces a random 20-character one with the lookalike characters left out and reveals it for copying. On SQL Server a user is a login plus a user of the same name in the current database, and a role is a database role.
2

Grant the way in

Select the account, then the database in the Objects pane, and select Connect under Administration. On PostgreSQL, select the schema as well and its Usage privilege. A new SQL Server user holds CONNECT already. On Oracle, select Server and CREATE SESSION instead.
3

Grant the reads

Expand the schema, select its tables (Shift-click for a range, Cmd-click to add one), and select the Select privilege under Data. A privilege set against several objects of one kind is granted on all of them.
4

Apply

Review & Apply… in the bottom bar lists the statements. Execute runs them; Open in Query Editor hands them to a query tab instead.

The three panes

Accounts sit on the left, with a filter field and the + / - buttons. Objects sit in the middle: the server, its databases, and, as you expand them, schemas, tables, and columns, each row carrying a Privileges summary of what the selected account holds there. Privileges sit on the right, listing only what the selected object can be granted, grouped into Data, Structure, Administration, and Dynamic. The last two start collapsed, and the bulk menu offers Grant All and Revoke All.

Effective privileges

A selected checkbox says what is granted directly on that object. The Effective column says where access actually comes from:
  • Inherited from role: the account holds it through a role it belongs to. PostgreSQL roles are followed transitively, and an account marked NOINHERIT only gets the privilege after SET ROLE, which the column says.
  • Granted on object: a privilege on a parent object already covers this one. Whether it does is the engine’s rule: a MySQL or SQL Server database-level grant covers the tables inside it, a PostgreSQL one does not, and on Oracle only a table’s privileges cover its columns.

Granting and revoking

Toggling a checkbox stages a change, marked on the account, the object, and the privilege. Toggling the same box twice cancels the pair out instead of generating a redundant REVOKE, and a privilege that was grantable to others stays grantable. Copy Privileges From in an account’s context menu stages the whole set another account holds.

Account attributes

The Attributes tab opens a form for the account itself: whether it can log in, role attributes such as SUPERUSER or CREATEDB on PostgreSQL, role membership (Member of, with Edit… for a checklist), and the connection limit. These stage and apply with everything else. On SQL Server, Can log in enables or disables the login; on Oracle it unlocks or locks the account. A role there never logs in, so the switch is off for roles. Change Password, in the context menu and on the Attributes form, sets a new one. Statements that carry a password are never written to query history, which is stored unencrypted on disk. The review sheet still shows every one of them. ALTER USER does not exist on MySQL before 5.7.6 or MariaDB before 10.2. A password and a connection limit go in there as GRANT USAGE ON *.* … IDENTIFIED BY and GRANT USAGE ON *.* … WITH MAX_USER_CONNECTIONS, which needs GRANT OPTION as well as write access to mysql.*.

Applying changes

The bar at the bottom counts staged changes. Discard throws the set away; Review & Apply… shows every statement, including the ones that remove access, with Copy All, Open in Query Editor, and Execute. PostgreSQL and SQL Server run them in one transaction, so a failure rolls the set back. MySQL and Oracle commit user management statements implicitly, so a failure there leaves the earlier ones applied and reports how many. A successful apply re-reads the server. Changes take the same guards as any other write: a read-only connection blocks them, and Safe Mode asks for confirmation or authentication as configured. On PostgreSQL and SQL Server, an apply made while a transaction is already open on the connection joins it instead of opening one of its own. The statements are pending in that transaction until you commit or roll it back, and the failure sheet counts them as pending rather than as written. MySQL and Oracle would commit that transaction before the first statement, so the apply is refused until you commit or roll it back.
Dropping the account this connection uses, altering it, or revoking every privilege from it is called out in the review sheet before the SQL runs. It is not blocked: revoking your own admin rights can be deliberate.

Dropping an account

Select it and press Delete, click -, or use the context menu. The drop is staged and struck through, and Cmd+Z undoes it. On PostgreSQL a role that owns objects cannot be dropped outright, so a sheet asks whether to reassign the owned objects to another role or drop them, generating REASSIGN OWNED or DROP OWNED alongside the DROP ROLE.
REASSIGN OWNED and DROP OWNED reach only the database you are connected to, plus shared objects. A role that owns objects in several databases needs the same step run in each. That is PostgreSQL behavior, not a TablePro limitation.

SQL Server and Oracle

SQL Server lists logins, server roles, and the current database’s roles and users. A login shows its server permissions under Server and the permissions of its user in the current database below that: sa holds them as dbo. Schemas, tables, and columns open only for the database the connection is on.
  • A server permission is granted in master, the only database SQL Server takes one in. The statement runs through sp_executesql, so the connection stays on its database.
  • Giving a database permission or a database role to a login with no user in the current database creates that user first.
  • Dropping a login drops its user in the current database. Its users in other databases stay, without a login.
  • Dropping a role removes its members first, since SQL Server drops only an empty role.
Oracle lists every account except the ones Oracle maintains, and every role. System privileges sit under Server; object privileges sit on the tables and views of each schema. An account without SELECT_CATALOG_ROLE reads the ALL_, USER_, and ROLE_ views instead of the DBA_ ones: it sees every account, but only the roles and privileges it holds itself.

Limitations

  • WITH GRANT OPTION is displayed, and never silently removed, but it cannot be edited.
  • ALTER DEFAULT PRIVILEGES and GRANT … ON ALL TABLES IN SCHEMA are out of scope.
  • MySQL 8 roles: MySQL accounts are managed as users.
  • Renaming an account.
  • SQL Server: DENY is not shown, a column revoked from a table-wide grant still reads as granted through the table, the permissions a fixed role such as db_datareader implies are not listed on it, and EXECUTE on a procedure is out of scope. Windows logins, contained users, and the default database and schema are managed in the editor.
  • Oracle: a column privilege cannot be revoked on its own, since Oracle revokes it from the whole table. An object privilege is revoked only by the account that granted it (ORA-01927). A user who owns objects is dropped only with DROP USER … CASCADE in the editor. The default tablespace and quota are set there too; UNLIMITED TABLESPACE under Server lifts the quota.
  • PostgreSQL keeps schema, table, and column privileges per database and cannot read them for a database it is not connected to. Those databases still appear, still show their cluster-wide grants, and are marked as not browsable rather than shown as empty. MySQL has no such restriction.