CREATE MANAGED ACCOUNT

statementsupportedNative apps, listings & sharing

docs.snowflake.com ↗

Object: MANAGED ACCOUNT

Creates a new managed account. Currently used by data providers to create reader accounts for their consumers. For more details, see Create and manage reader accounts. Provider sharing is enabled by default for most, but not all accounts. If you encounter errors when attempting to share data with consumers, the feature may not be enabled for your account. To inquire about enabling it, please contact Snowflake Support.

Syntax

supportedpartialnot supportednot scored

CREATE MANAGED ACCOUNT <name>
    ADMIN_NAME = <username> , ADMIN_PASSWORD = <user_password> ,
    TYPE = READER ,
    [ COMMENT = '<string_literal>' ]

Parameters

NameRequiredDescription
namerequiredIdentifier for the managed account; must be unique for your account. 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 (e.g. "My object"). For more details, see Identifier requirements. Important The identifier for the managed account is not the same as the account name, which is required to access the account. The account name, also known as the locator, is assigned by Snowflake.
ADMIN_NAME = usernamerequiredIdentifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account (i.e. this user is automatically created when the account is created and is assigned the ACCOUNTADMIN role). Once the account is created, you will log into the account as this user to configure (i.e. “bootstrap”) the account.
ADMIN_PASSWORD = user_passwordrequiredPassword for the initial user in the managed account. The password is a string literal that must be enclosed in single or double quotes and must conform to the Built-in password policy.
TYPE = READERrequiredSpecifies the type of managed account. Currently, the only type supported is READER (i.e. reader accounts used for data sharing).
COMMENT = 'string_literal'optionalSpecifies a comment for the managed account.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes CREATE ACCOUNT | Account | Only the ACCOUNTADMIN role has this privilege by default. The privilege can be granted to additional roles as needed. 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