ALTER ORGANIZATION¶
Modifies properties of a Snowflake organization, including the default tenant type for new accounts and the allowlist of email domains for internal accounts.
- See also:
Syntax¶
Parameters¶
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 toINTERNAL.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_NAMESstatement sets the full list and overrides any previously set organization-levelDOMAIN_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.
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.
Usage notes¶
-
Regarding metadata:
Attention
Customers should ensure that no personal data (other than for a User object), sensitive data, export-controlled data, or other regulated data is entered as metadata when using the Snowflake service. For more information, see Metadata fields in Snowflake.
-
Run this command from the organization account or another context where you have organization administrator privileges.
-
To view the current organization-level default tenant type and domain allowlist, call
SYSTEM$SHOW_ORGANIZATION. -
For account-level tenant type and domain allowlists on an individual account, see ALTER ACCOUNT.
Examples¶
Set the default tenant type for new accounts to EXTERNAL:
Set the allowlist of email domains for internal accounts:
Clear the organization-level domain allowlist: