GRANT AND REVOKE PRIVILEGES ON AN ARTIFACT

statementnot supportedAccess control (grants, roles)

docs.snowflake.com ↗

Use GRANT and REVOKE to manage READ and WRITE on an individual Snowflake Artifact. These statements don’t grant access to the source file or underlying data. These statements don’t grant access to the source file or underlying data.

Syntax

GRANT { READ | WRITE | READ, WRITE }
  ON ARTIFACT <name>
  TO { ROLE <role_name> | USER <user_name> }
  [ WITH GRANT OPTION ]

REVOKE { READ | WRITE | READ, WRITE }
  ON ARTIFACT <name>
  FROM { ROLE <role_name> | USER <user_name> }
  [ RESTRICT | CASCADE ]

Usage notes

Access control requirements

To grant a privilege, an active role must own the artifact, hold that privilege WITH GRANT OPTION, or hold account-level MANAGE GRANTS. WRITE by itself doesn’t grant authority to share. REVOKE removes the matching grants made by an activated grantor role; account-level MANAGE GRANTS can remove matching grants made by any role. In accounts enforcing managed access, the corresponding artifact-family MANAGE ACCESS privilege or MANAGE GRANTS is also required. The account-wide artifact-sharing setting continues to apply.