CREATE ACCOUNT

statementpartialAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Object: ACCOUNT

Creates a new account in your organization.

Syntax

supportedpartialnot supportednot scored

CREATE ACCOUNT [ IF NOT EXISTS ] <name>
      ADMIN_NAME = '<string_literal>'
    { ADMIN_PASSWORD = '<string_literal>' | ADMIN_RSA_PUBLIC_KEY = '<string_literal>' }
    [ ADMIN_USER_TYPE = { PERSON | SERVICE | LEGACY_SERVICE | NULL } ]
    [ FIRST_NAME = '<string_literal>' ]
    [ LAST_NAME = '<string_literal>' ]
      EMAIL = '<string_literal>'
    [ MUST_CHANGE_PASSWORD = { TRUE | FALSE } ]
      EDITION = { STANDARD | ENTERPRISE | BUSINESS_CRITICAL }
    [ REGION_GROUP = <region_group_id> ]
    [ REGION = <snowflake_region_id> ]
    [ COMMENT = '<string_literal>' ]
    [ POLARIS = { TRUE | FALSE } ]

Parameters

NameRequiredDescription
namerequiredSpecifies the account_name substring in an account identifier. This name should conform with all the requirements for account identifiers.
ADMIN_NAME = 'string_literal'requiredLogin name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
ADMIN_PASSWORD = 'string_literal'requiredPassword for the initial administrative user of the account. The password for the user must be enclosed in single or double quotes. Optional if the ADMIN_RSA_PUBLIC_KEY parameter is specified. For more information about passwords in Snowflake, see Built-in password policy.
ADMIN_RSA_PUBLIC_KEY = 'string_literal'requiredAssigns a public key to the initial administrative user of the account in order to implement key pair authentication for the user. Optional if the ADMIN_PASSWORD parameter is specified.
EMAIL = 'string_literal'requiredEmail address of the initial administrative user of the account. This email address is used to send any notifications about the account.
EDITION = { STANDARD | ENTERPRISE | BUSINESS_CRITICAL }requiredSnowflake Edition of the account.
ADMIN_USER_TYPE = { PERSON | SERVICE | LEGACY_SERVICE | NULL }optionalUsed for setting the type of the first user that is assigned the ACCOUNTADMIN role during account creation. Note The LEGACY_SERVICE type is being deprecated. Use the SERVICE type for services and applications. For a timeline of the deprecation of LEGACY_SERVICE, see Planning for the deprecation of single-factor password sign-ins. Default: NULL (Same as PERSON).
FIRST_NAME = string , LAST_NAME = stringoptionalFirst and last name of the initial administrative user of the account. Default: NULL
MUST_CHANGE_PASSWORD = { TRUE | FALSE }optionalSpecifies whether the new user created to administer the account is forced to change their password upon first login into the account. Default: FALSE
REGION_GROUP = region_group_idoptionalID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the SHOW REGIONS command. For information about when you might need to specify region group, see Region groups. Default: Current region group.
REGION = snowflake_region_idoptionalSnowflake Region ID of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.) To obtain a list of the regions that are available for an organization, execute the SHOW REGIONS command. Default: Current Snowflake Region.
COMMENT = 'string_literal'optionalSpecifies a comment for the account. Default: No value
POLARIS = { TRUE | FALSE }optionalSpecifies whether to create a Snowflake Open Catalog account. Default: FALSE

Usage notes

Access control requirements

Only organization administrators can execute this SQL command.

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.

See also

Referenced by