ALTER ORGANIZATION

statementsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Modifies properties of a Snowflake organization, including the default tenant type for new accounts and the allowlist of email domains for internal accounts.

Syntax

supportedpartialnot supportednot scored

ALTER ORGANIZATION SET DEFAULT_TENANT_TYPE = { INTERNAL | EXTERNAL }

ALTER ORGANIZATION SET DOMAIN_NAMES = ( '<domain>' [ , '<domain>' , ... ] )

ALTER ORGANIZATION UNSET DOMAIN_NAMES

Parameters

NameRequiredDescription
SET ...Specifies an organization property to set.
DEFAULT_TENANT_TYPE = { INTERNAL | EXTERNAL }Sets the default tenant type for new accounts in the organization. When CREATE ACCOUNT omits TENANT_TYPE, new accounts use this default. If you don’t set DEFAULT_TENANT_TYPE, new accounts default to INTERNAL. For tenant type concepts, privileges, and legal requirements when setting EXTERNAL, see Third party (publisher–subscriber) accounts.
DOMAIN_NAMES = ( 'domain' [ , 'domain' , ... ] )Sets the allowlist of email domains for users of all internal accounts in the organization. Provide domain names as a list of string literals. Each ALTER ORGANIZATION SET DOMAIN_NAMES statement sets the full list and overrides any previously set organization-level DOMAIN_NAMES. It does not append to an earlier list. Account-level domain allowlists for external accounts are set with ALTER ACCOUNT.
UNSET DOMAIN_NAMESClears the organization-level allowlist of email domains for internal accounts.

Usage notes

Access control requirements

You can run this command only from the organization account or an ORGADMIN role-enabled account. The following privileges and roles can run this command: Privilege or role | Object | Notes GLOBALORGADMIN | Organization account | Can set and unset these organization properties. ORGADMIN | Account | Can set and unset these properties from an ORGADMIN role-enabled account. MANAGE TENANTS | Account | A custom role granted this privilege in the organization account can set and unset these properties. See GRANT <privileges> … TO ROLE. 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