Categories:

System functions (System Information)

SYSTEM$SHOW_ORGANIZATION

Returns details about your organization, including its name, allowed domain names, and default tenant type.

Syntax

SYSTEM$SHOW_ORGANIZATION( )

Arguments

None.

Returns

Returns a string that contains a JSON object with the following properties of the organization:

PropertyDescription
organization_nameThe name of the organization.
visible_region_groupsThe region groups that are visible to the organization.
allowed_domain_namesThe email domains allowed for the organization, as a comma-separated string in alphabetical order. For example, company.org,example.com.
default_tenant_typeThe default tenant type of the organization, if one is configured.

The following is an example response:

{
  "message": null,
  "organization_name": "organization_name",
  "visible_region_groups": [
    "PUBLIC"
  ],
  "allowed_domain_names": "example.com,example.org",
  "default_tenant_type": "INTERNAL",
  "anacondaTermsAcceptance": {
    "username": "username",
    "firstname": "first_name",
    "lastname": "last_name",
    "email": "user@example.com",
    "accepted_at": 1700000000000
  },
  "connectorToSAcceptance": null,
  ...
}

The response includes organization properties and details about accepted terms of service, such as the username, name, email address, and acceptance timestamp of the user who accepted them.

Access control requirements

Only users with the ORGADMIN or GLOBALORGADMIN role can call this function. For more information, see Organization administrators.

Examples

Return the details of your organization:

SELECT SYSTEM$SHOW_ORGANIZATION();

Return only the allowed domain names:

SELECT PARSE_JSON(SYSTEM$SHOW_ORGANIZATION()):allowed_domain_names::STRING AS allowed_domain_names;