TABLE_PRIVILEGES view

This Information Schema view displays a row for each table privilege that has been granted to each role in the specified (or current) database.

For more information about roles and privileges, see Overview of Access Control.

See also:

APPLICABLE_ROLES view , ENABLED_ROLES view , OBJECT_PRIVILEGES view

Columns

Column NameData TypeDescription
GRANTORVARCHARRole who granted the table privilege
GRANTEEVARCHARRole to whom the table privilege is granted
GRANTED_TOVARCHARType of object that has been granted the privilege
TABLE_CATALOGVARCHARDatabase containing the table on which the privilege is granted
TABLE_SCHEMAVARCHARSchema containing the table on which the privilege is granted
TABLE_NAMEVARCHARName of the table on which the privilege is granted
PRIVILEGE_TYPEVARCHARType of the granted privilege
IS_GRANTABLEVARCHARWhether the privilege was granted WITH GRANT OPTION
WITH_HIERARCHYVARCHARNot applicable for Snowflake.
CREATEDTIMESTAMP_LTZCreation time of the privilege

Usage notes

  • The view only displays objects for which the current role for the session has been granted access privileges.
  • The PRIVILEGE_TYPE column contains Snowflake privilege types. For example, the owner of a table has the OWNERSHIP privilege, rather than each of the separate privileges (e.g. SELECT, INSERT, DELETE, UPDATE).