Managing catalog privileges requires an administrative role; querying data requires a role with query access. See Roles and permissions. Use access control carefully, as it governs who can read potentially sensitive data.
How privileges resolve
- The permission hierarchy is Catalog → Database → Table → Column. Selecting a database includes all its tables unless you select specific tables; selecting a table includes all its columns unless you select specific columns.
- Selecting all (
*), or leaving the table/column fields empty, grants access to everything below the selected level. - With no privilege defined for a catalog, access is denied by default.
- A user or group can belong to multiple privileges at once. Allow grants query access; Deny always takes precedence over Allow.
- Allow up to 60 seconds for a new or changed privilege to be applied by the SQL engine.
- A newly added user has no query access until they’re assigned to a catalog privilege.
Create a privilege
- Navigate to Catalogs and click the desired catalog.
- Select the Privilege tab.
- Click Create Privileges and give the privilege a name (and optional description).
- Select the Access Control privilege type.
- Select the databases, tables, and columns.
- Choose the access type - Allow or Deny.
- Select the user(s) and group(s) the privilege applies to.
- Click Create. The privilege appears in the Privileges list.
Allow privileges
An Allow privilege grants access to the selected resources. Multiple Allow privileges are additive - if any grants access (and no Deny applies), the query runs. Common patterns:- All databases: select all databases; leave table/column fields empty to grant access to the entire catalog.
- Selected databases: select specific databases (and optionally tables/columns) - access to unselected databases is denied.
- Selected tables and columns: select a schema and table, then specific columns - querying unselected columns fails, while querying the permitted columns succeeds.
Deny privileges
A Deny privilege restricts access to the selected resources and takes precedence over any Allow. A Deny only denies - it does not grant access to anything else.A Deny privilege results solely in access denial; it does not imply permission for other resources. To grant access, create a separate Allow privilege.
See also
- Data governance overview
- Data access policies - column masking and row filtering.
- Roles and permissions