Skip to main content

CATALOG_PRIVILEGES

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 10.4 LTS and above check marked yes Unity Catalog only

INFORMATION_SCHEMA.CATALOG_PRIVILEGES lists principals that have privileges on a catalog.

note

Currently, users with the MANAGE privilege on an object cannot view all grants for that object in the INFORMATION_SCHEMA. Instead, the INFORMATION_SCHEMA only shows grants their own grants on the object. This behavior will be corrected in the future.

Users with MANAGE privilege can view all grants on an object using SQL commands or Catalog Explorer. See Manage privileges in Unity Catalog.

Definition

The CATALOG_PRIVILEGES relation contains the following columns:

NameData typeNullableStandardDescription
GRANTORSTRINGNoYesPrincipal that granted the privilege.
GRANTEESTRINGNoYesPrincipal to which the privilege is granted.
CATALOG_NAMESTRINGNoYesCatalog on which the privilege is granted.
PRIVILEGE_TYPESTRINGNoYesPrivilege being granted.
IS_GRANTABLESTRINGNoYesAlways NO. Reserved for future use.
INHERITED_FROMSTRINGYesNoThe ancestor relation that the privilege is inherited from.

Constraints

The following constraints apply to the CATALOG_PRIVILEGES relation:

ClassNameColumn ListDescription
Primary keyCATPRIVS_PKGRANTOR, GRANTEE, CATALOG_NAME, PRIVILEGE_TYPEUnique identifier for the granted privilege.
Foreign keyCATPRIVS_CATS_FKCATALOG_NAMEReferences CATALOGS

Examples

SQL
> SELECT catalog_name, grantee
FROM information_schema.catalog_privileges;