SHOW ORGANIZATION ACCOUNTS

Lists the organization account of the organization.

Important

Previously, this command was used to list all accounts in the organization, but has been repurposed to list the organization account. If you want to list all accounts in the organization, use SHOW ACCOUNTS.

See also:

CREATE ORGANIZATION ACCOUNT, ALTER ORGANIZATION ACCOUNT

Syntax

SHOW ORGANIZATION ACCOUNTS [ LIKE '<pattern>' ]

Parameters

LIKE 'pattern'

Optionally filters the command output by object name. The filter uses case-insensitive pattern matching, with support for SQL wildcard characters (% and _).

For example, the following patterns return the same results:

... LIKE '%testing%' ... ... LIKE '%TESTING%' ...


Default: No value (no filtering is applied to the output).

Usage notes

  • Only users with the GLOBALORGADMIN role can run this command, which means it can only be run from the organization account.
  • The command doesn’t require a running warehouse to execute.
  • The command only returns objects for which the current user’s current role has been granted at least one access privilege.
  • The MANAGE GRANTS access privilege implicitly allows its holder to see every object in the account. By default, only the account administrator (users with the ACCOUNTADMIN role) and security administrator (users with the SECURITYADMIN role) have the MANAGE GRANTS privilege.
  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.

    When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column type, specify SELECT "type".

    You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.

Output

The command output provides global account properties and metadata in the following columns:

ColumnDescription
organization_nameName of the organization.
account_nameUser-defined name that identifies an account within the organization.
region_group

Region group where the account is located. Note: This column is only displayed for organizations that span multiple region groups.

snowflake_regionSnowflake Region where the account is located. A Snowflake Region is a distinct location within a cloud platform region that is isolated from other Snowflake Regions. A Snowflake Region can be either multi-tenant or single-tenant (for a Virtual Private Snowflake account).
editionSnowflake Edition of the account.
account_urlPreferred Snowflake account URL that includes the values of organization_name and account_name.
created_onDate and time when the account was created.
commentComment for the account.
account_locatorSystem-assigned identifier of the account.
account_locator_urlLegacy Snowflake account URL syntax that includes the region_name and account_locator.
managed_accountsIndicates how many managed accounts have been created by the account.
consumption_billing_entity_nameName of the consumption billing entity.
marketplace_consumer_billing_entity_nameName of the marketplace consumer billing entity.
marketplace_provider_billing_entity_nameName of the marketplace provider billing entity.
old_account_urlIf the original account URL was saved when the account was renamed, provides the original URL. If the original account URL was dropped, the value is NULL even if the account was renamed.
is_org_adminIndicates whether the ORGADMIN role is enabled in an account. If TRUE, the role is enabled.
account_old_url_saved_onIf the original account URL was saved when the account was renamed, provides the date and time when the original account URL was saved.
account_old_url_last_usedIf the original account URL was saved when the account was renamed, indicates the last time the account was accessed using the original URL.
organization_old_urlIf the account’s organization was changed in a way that created a new account URL and the original account URL was saved, provides the original account URL. If the original account URL was dropped, the value is NULL even if the organization changed.
organization_old_url_saved_onIf the account’s organization was changed in a way that created a new account URL and the original account URL was saved, provides the date and time when the original account URL was saved.
organization_old_url_last_usedIf the account’s organization was changed in a way that created a new account URL and the original account URL was saved, indicates the last time the account was accessed using the original account URL.
is_events_accountIndicates whether an account is an events account. For more information, see Use logging and event tracing for an app.
is_organization_accountIndicates whether an account is the organization account.

Examples

Show information about the organization account:

SHOW ORGANIZATION ACCOUNTS;