Building a Data Stack Live with AI AgentsLivestream August 18

Skip to main content

SHOW grants

Requires permissionRoles and access control →
View all organization SharesAdmin ✓Builder —Explorer —

Marked preset roles include the permission by default; a custom role qualifies when it inherits a role that includes it. Share owners can inspect grants on Shares they own without this permission.

This read-only command reports who can read a Share. Visibility does not guarantee access. See Roles and access control for the model.

SHOW GRANTS ON SHARE​

List everyone with READ access to a Share: direct role and user grants, plus the automatic grant that an organization-wide or public Share carries.

SHOW GRANTS ON SHARE core_metrics;

Output columns:

ColumnDescription
share_ownerThe user who owns the Share.
grantee_nameThe role name or username for a direct grant, or a fixed keyword for a whole-organization (ENTIRE_ORGANIZATION) or public (ALL_USERS) grant.
grantee_typeThe kind of grantee. See the values below.
privilegeread.
granted_atWhen the grant was made.

grantee_type is one of:

grantee_typegrantee_nameProduced by
rolethe role nameGRANT READ ON SHARE ... TO ROLE
userthe usernameGRANT READ ON SHARE ... TO USER
organizationENTIRE_ORGANIZATIONa Share created with ACCESS ORGANIZATION, readable by everyone in the owner's organization
domainALL_USERSa Share created with ACCESS UNRESTRICTED, readable by anyone with the Share URL

A Share created with ACCESS ORGANIZATION or ACCESS UNRESTRICTED carries a single automatic grant (ENTIRE_ORGANIZATION or ALL_USERS) rather than individual role or user grants. GRANT and REVOKE apply only to RESTRICTED Shares.

note

Shares are region-scoped based on your Organization's cloud region. A grant appearing here does not extend across regions: an ACCESS UNRESTRICTED (public) Share is only accessible to MotherDuck users in the same cloud region as the underlying data, while an ACCESS ORGANIZATION Share is only accessible to your Organization's users.