GRANT AND REVOKE PRIVILEGES ON AN ARTIFACT
statementnot supportedAccess control (grants, roles)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
- GRANT WRITE creates a WRITE grant but not a separate READ grant. A WRITE holder can still read the artifact. REVOKE READ alone doesn’t necessarily remove WRITE; revoke both when you intend to remove both.
- Granting READ to PUBLIC permits everyone in the account to read the artifact, subject to account-wide controls.
- Artifact grants don’t appear in SHOW GRANTS. Inspect them with SYSTEM$SHOW_ARTIFACT_GRANTS.
- To transfer ownership, see GRANT OWNERSHIP ON ARTIFACT.
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.