SYSTEM$SHOW_ARTIFACT_GRANTS

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

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

SELECT SYSTEM$SHOW_ARTIFACT_GRANTS('<uuid>')

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.