ALTER EXTERNAL CONSUMER

statementpartialNative apps, listings & sharing

docs.snowflake.com ↗

Object: EXTERNAL CONSUMER

Modifies the properties of an existing external consumer, or manages its programmatic access tokens (PATs) and workload identities.

Syntax

supportedpartialnot supportednot scored

ALTER EXTERNAL CONSUMER [ IF EXISTS ] <name> SET
  [ COMMENT = '<string_literal>' ]
  [ EMAIL = '<email_address>' ]
ALTER EXTERNAL CONSUMER [ IF EXISTS ] <name> UNSET
  [ COMMENT ]
  [ EMAIL ]
ALTER EXTERNAL CONSUMER [ IF EXISTS ] <name> RENAME TO <new_name>

Parameters

NameRequiredDescription
IF EXISTSApplies the change only if an external consumer with the specified name exists. If no external consumer with that name exists, the command does nothing and completes successfully instead of returning an error.
nameSpecifies the identifier for the external consumer to modify.
COMMENT = 'string_literal'Specifies a new comment for the external consumer.
EMAIL = 'email_address'Specifies a new email address for the external consumer.
RENAME TO new_nameRenames the external consumer to the specified identifier.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | External Consumer | Required to modify the properties of the consumer. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.

See also

Referenced by