CREATE CONTACT

statementsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Object: CONTACT

Creates a new contact or replaces an existing contact.

Syntax

supportedpartialnot supportednot scored

CREATE [ OR REPLACE ] CONTACT [ IF NOT EXISTS ] <name>
  [ {
    USERS = ( '<user_name>' [ , '<user_name>' ... ] )
    | EMAIL_DISTRIBUTION_LIST = '<email>'
    | URL = '<url>'
    } ]
  [ COMMENT = '<string_literal>' ]

Parameters

NameRequiredDescription
namerequiredSpecifies the name of the new contact. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters unless the entire identifier string is enclosed in double quotes (for example, "My object"). Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements.
USERS = ( 'user_name' [ , 'user_name' ... ] )optionalComma-delimited list of Snowflake users who can be contacted, specified by the name of their user objects. If the user name is case-sensitive or includes any special characters or spaces, double quotes are required. The double quotes must be enclosed within the single quotes. For example, if the user is joe@example.com, you must specify '"joe@example.com"'.
EMAIL_DISTRIBUTION_LIST = 'email'optionalA valid email address, which can be a distribution list.
URL = 'url'optionalA URL that can be used to contact people about an object.
COMMENToptionalA user-defined string. Specifies a comment for the contact.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes CREATE CONTACT | Schema | Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. 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.

See also

Referenced by