SYSTEM$SHOW_ ARTIFACT_ GRANTS¶
Returns a JSON document listing grants recorded on a Snowflake Artifact. Artifact grants aren’t shown by the general SHOW GRANTS command. There is no SHOW GRANTS ON ARTIFACT statement.
Syntax¶
Arguments¶
'<uuid>'
: The artifact’s external UUID as a single-quoted string literal, not a SQL identifier. To find it, use the id column from SHOW ARTIFACTS or an artifact link.
Returns¶
A VARCHAR containing JSON. The document includes schemaVersion, id, and a grants array. Each grant includes privilege, granteeRoleName, grantorRoleName, grantOption, and grantedOn. The output can include OWNERSHIP, READ, and WRITE grants. It lists recorded grants, not every user with effective access or source-data permissions.
Access control requirements¶
The caller needs an active role with a privilege on the artifact, including OWNERSHIP, READ, or WRITE, or account-level MONITOR, MANAGE GRANTS, or RESOLVE ALL. The function does not require a running warehouse. The authorization to inspect grants is distinct from the authority to grant or revoke them.
Example¶
Use PARSE_JSON to work with fields in the returned JSON. For artifact properties rather than grants, see DESCRIBE ARTIFACT.