Skip to main content

SHARE_RECIPIENT_PRIVILEGES

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

INFORMATION_SCHEMA.SHARE_RECIPIENT_PRIVILEGES lists recipients that have privileges on a share.

Information is displayed only for shares or recipients for which the user has permission to interact with either.

This is an extension to the SQL Standard Information Schema.

Definition

The SHARE_RECIPIENT_PRIVILEGES relation contains the following columns:

NameData typeNullableDescription
GRANTORSTRINGNoPrincipal that granted the privilege.
RECIPIENT_NAMESTRINGNoRecipient to which the privilege is granted.
SHARE_NAMESTRINGNoShare on which the privilege is granted.
PRIVILEGE_TYPESTRINGNoPrivilege being granted.
INHERITED_FROMSTRINGYesThe ancestor relation that the privilege is inherited from.

Constraints

The following constraints apply to the SHARE_RECIPIENT_PRIVILEGES relation:

ClassNameColumn ListDescription
Primary keySHARE_RECIPIENT_PRIVS_PKGRANTOR, RECIPIENT_NAME, SHARE_NAME, PRIVILEGE_TYPEUnique identifier for the granted privilege.
Foreign keySHARE_RECIPIENT_PRIVS_RECIPIENTS_FKRECIPIENT_NAMEReferences RECIPIENTS
Foreign keySHARE_RECIPIENT_PRIVS_SHARES_FKSHARE_NAMEReferences SHARES

Examples

SQL
> SELECT share_name, recipient_name
FROM information_schema.share_recipient_privileges;