Skip to main content
Privileges granted to a user or role determine which operations the user or role can perform on certain objects. Privileges can be used to implement fine-grained access control to safeguard data security. This topic describes privileges provided by the database on different objects and their meanings. Privileges are granted and revoked by using GRANT and REVOKE. The privileges that can be granted on an object are specific to the object type. For example, table privileges are different from database privileges. Important The privileges described in this topic are available only from v3.0. The privilege framework and syntax in v3.0 are not backward compatible with those in earlier versions. After an upgrade to v3.0, most of your original privileges are still retained except those for specific operations. For the detailed differences, see Upgrade notes at the end of this topic.

Privilege list

This section describes privileges that are available on different objects.

SYSTEM

AI FUNCTION / AI PROVIDER

Note: Calling an AI function requires USAGE on both the function and the selected Provider, including the default Provider. Managing Providers requires SYSTEM OPERATE.

RESOURCE GROUP

RESOURCE

USER

GLOBAL FUNCTION (Global UDFs)

CATALOG

Notes: the database internal catalog cannot be deleted.

DATABASE

TABLE

VIEW

MATERIALIZED VIEW

FUNCTION (Database-level UDFs)

STORAGE VOLUME

Upgrade notes

During an upgrade from v2.x to v3.0, some of your operations may be unable to perform due to the introduction of the new privilege system. The following table describes the changes before and after the upgrade. In v2.x, the database does not fully implement role-based access control (RBAC). When you assign a role to a user, the database directly grants all the privileges of the role to the user, instead of the role itself. Therefore, the user does not actually own the role. In v3.0, the database renovates its privilege system. After an upgrade to v3.0, your original roles are retained but there is still no ownership between users and roles. If you want to use the new RBAC system, perform the GRANT operation to assign roles and privileges.