Updated on 2025-10-23 GMT+08:00

user_privileges

The user_privileges view displays user permissions on database objects, such as tables, views, and schemas, in GaussDB. This view is read-only. All users have the read permission on this view, but they can read only the records that they have the access permission.

Table 1 information_schema.user_privileges columns

Name

Type

Description

GRANTEE

varchar(81)

Name of the user or role to which the permission is granted.

TABLE_CATALOG

varchar(512)

Name of the catalog (database) where the object is located.

PRIVILEGE_TYPE

varchar(64)

Permission granted.

IS_GRANTABLE

varchar(3)

yes indicates that the permission can be granted, and no indicates that the permission cannot be granted.