GRANT OWNERSHIP ON ARTIFACT

Transfers ownership of a Snowflake Artifact. An artifact always has an owner; REVOKE OWNERSHIP ON ARTIFACT isn’t supported.

Syntax

GRANT OWNERSHIP ON ARTIFACT <name>
  TO { ROLE <role_name> | USER <user_name> }
  [ COPY CURRENT GRANTS | REVOKE CURRENT GRANTS ]

Parameters

<name>

: The artifact’s external UUID as a double-quoted identifier, not a single-quoted string. Use the id returned by SHOW ARTIFACTS, or the identifier in an artifact link.

TO ROLE <role_name> | USER <user_name>

: Specifies the account role or the user’s personal role that becomes the owner.

COPY CURRENT GRANTS | REVOKE CURRENT GRANTS

: Keeps or removes existing artifact grants. Unlike ownership transfer for most other objects, omitting this clause defaults to COPY CURRENT GRANTS.

Access control requirements

The executing role needs OWNERSHIP on the artifact and the ability to act for the recipient role, or account-level MANAGE GRANTS. Managed-access enforcement can also require an artifact-family MANAGE ACCESS privilege for owners. WRITE alone isn’t sufficient to transfer ownership.

Examples

GRANT OWNERSHIP ON ARTIFACT "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
  TO ROLE analytics_team COPY CURRENT GRANTS;

GRANT OWNERSHIP ON ARTIFACT "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
  TO USER alice REVOKE CURRENT GRANTS;