---
title: Domains and subdomains
description: Create Unity Catalog domains and subdomains, nested up to five levels, to group data assets by business area so consumers can browse them on the Discover page.
canonical_url: https://docs.databricks.com/aws/en/uc-semantics/domains
---

# Domains and subdomains

*Domains* and *subdomains* are organization layers that group data assets by business purpose. [Curators](https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-discovery.md#personas) create and manage domains to help [consumers](https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-discovery.md#personas) browse and find data in the [Discover page](https://docs.databricks.com/aws/en/discover/discover-page.md) in a way that's aligned with your business.

Curators can create, manage, and customize domains and nest subdomains up to five levels deep. For the consumer experience of browsing data by domain, see [Discover page](https://docs.databricks.com/aws/en/discover/discover-page.md).

## <a id="what-are-domains" />What are domains?

Domains are an organization layer that groups data products and assets by governed tags. Domains help users find data that relates to their needs more easily. To add an asset to a domain, add the corresponding governed tag to the asset. Large domains can be further divided into *subdomains* to partition assets by more specific business areas.

Every account includes a default domain, `system.general_domain`, that Databricks creates and manages. Use it for content that applies across your organization and doesn't belong to a more specific domain. To add an asset to it, apply the `system.general_domain` governed tag, as you would for any other domain. It appears as *General*. You can edit its description, subtitle, icon, and owners, but you can't rename it, delete it, set it to draft, or create subdomains under it.

Domains and subdomains also organize [Pages](https://docs.databricks.com/aws/en/uc-semantics/pages.md) by business area. Each domain has its own set of Pages, and a Page belongs to exactly one domain or subdomain.

![Browse by domain on the Discover page](https://docs.databricks.com/aws/en/images/workspace/browse-by-domain.png)

## <a id="what-are-subdomains" />What are subdomains?

A subdomain is a lower level of hierarchy within a domain. Subdomains let you partition a large domain (for example, *Finance*) into more specific business areas (for example, *Audit*, *Tax*, or *FP\&A*) without creating additional top-level domains. A subdomain can have its own subdomains, so you can model a deeper taxonomy, such as *Sales* > *Europe* > *France*.

The following rules apply when working with subdomains:

* **Up to five levels**: A top-level domain can have up to four levels of subdomains below it. Each domain can contain many subdomains, but domains at the fifth level cannot have subdomains.
* **One parent per subdomain**: Each subdomain belongs to exactly one parent domain.
* **Many-to-many for assets**: An asset can belong to multiple domains and subdomains.
* **Subdomain assets appear in the direct parent domain**: A subdomain's assets also appear on its direct parent's domain page, but not on domains higher up. For example, assets in *Sales/Europe/France* appear in *Sales/Europe*, but not in *Sales*. A domain's asset count includes only the assets tagged with that domain's own tag.
* **Built on governed tags with a shared prefix**: Subdomains use a `{parentDomainTag}/{subdomainName}` naming convention (for example, `Finance/Tax`), and each level adds one more segment (for example, `Sales/Europe/France`). Each level has its own tag: tagging an asset with `Finance/Tax` does not automatically tag it with `Finance`.

## <a id="domain-names" />Domain names

Each domain and subdomain has a governed tag and an optional display name. The display name is shown instead of the tag name, for example on domain cards, domain pages, breadcrumbs, and the **Domain** search filter. A domain without a display name shows its tag name. For a subdomain, that's the last segment of its tag (for example, `France` for `Sales/Europe/France`).

The following rules apply to domain names:

* **Unique among siblings**: Domains with the same parent can't share a name, ignoring case. All top-level domains count as siblings of each other. Both display names and tag names count, and a domain's tag name stays reserved even after you give it a display name. For example, under *Europe*, you can't name a subdomain *France* if another subdomain uses the tag `Europe/france`. Domains under different parents can share a name.
* **General is reserved**: You can't use `General` as the tag or display name of a top-level domain. The name belongs to the default domain.
* **Renaming changes only the display name**: The governed tag stays the same, so assets stay in the domain, and new subdomains still use the parent's tag as their prefix. See [Edit a domain or subdomain](https://docs.databricks.com/aws/en/uc-semantics/domains.md#edit-domain).

## <a id="enabling-disabling" />Requirements

> [!NOTE]
>
> Domains are an account-level concept that utilize governed tags. Domains that you configure apply to the whole account, not select workspaces.

On workspaces with the [compliance security profile (CSP)](https://docs.databricks.com/aws/en/security/privacy/enhanced-security-compliance.md) enabled, **Discover Page** is disabled by default. To use domains on these workspaces, a workspace admin must enable **Discover Page**. See [Manage Databricks previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).

## <a id="manage-discovery" />Curator permissions

Users interact with the **Discover** page as one of three personas: [curators](https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-discovery.md#personas), who create and populate domains, manage [Pages](https://docs.databricks.com/aws/en/uc-semantics/pages.md), and customize the **Discover** page; [Page managers](https://docs.databricks.com/aws/en/uc-semantics/pages.md#permissions), who publish and manage Pages in the domains and subdomains where they hold `MANAGE PAGES`; and [consumers](https://docs.databricks.com/aws/en/data-governance/unity-catalog/data-discovery.md#personas), who browse the results to search for the data they need.

Customizing the **Discover** page and managing domains require curator permissions: `MANAGE DISCOVER` at the account level, or `MANAGE DOMAIN` on a specific domain or subdomain. Account admins and workspace admins have account-level `MANAGE DISCOVER` by default. Account admins can grant these permissions to other users. Curators can also grant `MANAGE PAGES`, which lets users publish and manage Pages without managing the domain itself. See [Grant Page manager permissions](https://docs.databricks.com/aws/en/uc-semantics/pages.md#grant-page-manager-permissions).

Domains let consumers browse data in a way that's aligned with how they understand your business within your organization. Each domain page also allows curators to create custom collections on that page to further guide and emphasize the best assets in that domain.

### <a id="manage-discovery-permissions" />Grant curator permissions

Account admins can grant users curator permissions. You can grant the permission at three scopes, from broadest to narrowest:

| Scope     | Permission        | A curator with this grant can manage                                       |
| --------- | ----------------- | -------------------------------------------------------------------------- |
| Account   | `MANAGE DISCOVER` | Every domain and subdomain in the account, and their Pages.                |
| Domain    | `MANAGE DOMAIN`   | A specific domain, every subdomain below it at any level, and their Pages. |
| Subdomain | `MANAGE DOMAIN`   | A specific subdomain, every subdomain below it, and their Pages.           |

Account admins and workspace admins hold account-level `MANAGE DISCOVER` by default.

To grant `MANAGE DISCOVER` at the account level:

1. On the **Discover** page, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) overflow menu and select **Manage Domains**.
2. Click the **Permissions** tab.
3. Click **Grant Permissions** to grant the permission to the corresponding principal.

![Permissions tab of the Manage Discover page](https://docs.databricks.com/aws/en/images/workspace/manage-discovery.png)

To grant `MANAGE DOMAIN` on a domain or subdomain:

1. On the **Discover** page, open the domain. To scope the grant to a subdomain, open the subdomain from the domain page.
2. Click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) overflow menu and select **Domain permissions**.
3. Click **Grant Permissions** to grant the permission to the corresponding principal.

![Grant the MANAGE DOMAIN permission on a domain or subdomain](https://docs.databricks.com/aws/en/images/discover/grant-permissions-per-domain.png)

## <a id="domain-creation" />Create a domain

Domains are built on governed tags. To create a domain, you can either map it to an existing tag or create a governed tag with the same name. For example, to create a "Marketing" domain, you must create a "Marketing" governed tag. Tags that contain a slash (`/`) can't be used to create a top-level domain; the slash is reserved for the subdomain naming convention. See [Create a subdomain](https://docs.databricks.com/aws/en/uc-semantics/domains.md#create-subdomain).

> [!WARNING]
>
> Tag data is stored as plain text and is replicated globally. Do not use tag names, values, or descriptors that can compromise the security of your resources. For example, do not use tag names, values, or descriptors that contain personal or sensitive information.
>
> Domain metadata is also replicated globally. Do not use domain IDs, display names, descriptions, subtitles, or other metadata that can compromise the security of your resources. For example, do not use domain IDs, display names, descriptions, or subtitles that contain personal or sensitive information.

1. In the top-right corner of the **Discover** page, click **Create domain**.

   ![Create domain button on the Discover page](https://docs.databricks.com/aws/en/images/workspace/create-domain-button.png)

2. In the **Create domain** modal, select an existing governed tag or create a new one, then fill out the following fields:

   * **Display name** (optional): The name shown for the domain. Leave it blank to use the tag name. See [Domain names](https://docs.databricks.com/aws/en/uc-semantics/domains.md#domain-names).
   * **Subtitle**: Appears on the domain card.
   * **Description**: The domain overview.
   * **Technical owner** (optional): Who is responsible for technical aspects of the domain.
   * **Business owner** (optional): Who is responsible for business aspects of the domain.

   ![Create domain modal with fields to edit](https://docs.databricks.com/aws/en/images/workspace/create-domain-modal.png)

3. Click **Create** to create the domain and add a corresponding draft domain card on the **Discover** page.

   When you create a domain, it is in the draft state. The draft state is indicated by an icon next to the title. Draft domains are only visible to curators.

4. Optionally, click **Edit Sections** to add assets and customize the domain layout.

5. To make the domain available to consumers, click **Edit Sections** on the domain page, then click **Publish**. After publishing, users can use the domain as a filter in the search experience.

## <a id="create-subdomain" />Create a subdomain

Subdomains are built on the same governed-tag primitive as domains, but follow a required `{parentDomainTag}/{subdomainName}` naming pattern.

1. On the **Discover** page, open the parent domain page. The parent can be any domain or subdomain above the fifth level.

2. Click **Create subdomain** in the top-right corner. Domains at the fifth level don't show this button.

3. In the **Create subdomain** modal, select one of:

   * **Create a tag**: Enter the name you want to give your subdomain. Databricks automatically prefixes the new tag with the parent domain's tag key (for example, entering `Tax` under the *Finance* domain creates the tag `Finance/Tax`). The subdomain name itself cannot contain a slash (`/`). To add a deeper level, create a subdomain under the subdomain instead.
   * **Use an existing tag**: Select a governed tag that already matches the `{parentDomainTag}/{subdomainName}` pattern. The picker only shows tags exactly one level below the parent's tag. For example, under *Sales*, it shows `Sales/Europe` but not `Sales/Europe/France`. A tag that is already designated as a domain or a subdomain cannot be reused.

   ![Create subdomain modal](https://docs.databricks.com/aws/en/images/workspace/create-subdomain-modal.png)

4. Optionally, fill out the subdomain fields:
   * **Display name**: The name shown for the subdomain. Leave it blank to use the last segment of its tag. See [Domain names](https://docs.databricks.com/aws/en/uc-semantics/domains.md#domain-names).
   * **Subtitle**: Appears on the subdomain card.
   * **Description**: The subdomain overview.
   * **Technical owner**: Can differ from the parent domain's technical owner.
   * **Business owner**: Can differ from the parent domain's business owner.

5. Click **Create** to create the subdomain in a draft state.

6. To make the subdomain available to consumers, click **Edit Sections** on the subdomain page, then click **Publish**.

## <a id="edit-domain" />Edit a domain or subdomain

1. On the **Discover** page, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) overflow menu and select **Manage Domains**.
2. For the domain or subdomain you'd like to edit, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu on the right.
3. Click **Edit domain**.

![Edit domain button](https://docs.databricks.com/aws/en/images/workspace/edit-domain.png)

To rename a domain or subdomain, change its **Display name** in the **Edit domain** modal and save. Clear the field to show the tag name again. Renaming doesn't change the domain's governed tag, so assets and subdomains are unaffected. You can also ask Genie Code on the **Discover** page to rename a domain.

## <a id="delete-domain" />Delete a domain or subdomain

1. On the **Discover** page, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) overflow menu and select **Manage Domains**.
2. For the domain or subdomain you'd like to delete, click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu on the right.
3. Click **Remove domain**.

Removing a domain also removes every subdomain below it, at all levels. If any of those domains contain Pages, the confirmation dialog warns you before you remove them.

![Delete domain button](https://docs.databricks.com/aws/en/images/workspace/delete-domain.png)

## <a id="assign-assets-to-domain" />Assign assets to a domain

There are multiple ways to add assets to a domain:

* Add them directly from the domain page.
* Apply the corresponding governed tag to the assets.

### <a id="from-the-domain-page" />From the domain page

1. Go to the **Discover** page and click the domain you want to add assets to.
2. Click **Add to Domain** on the top right. You must have the permission to add the associated tag to the asset you are attempting to add to the domain.
3. In the **Asset Selector** modal, select the asset you would like to add to the domain and click **Add**.
   * The **Asset Selector** allows you to browse and search for assets across your workspace and catalog.
   * Depending on the type of assets you want to add, you can switch between **Workspace** (for assets like dashboards and Genie Agents) and **Catalog** (for assets like tables and metric views).
   * You can add one asset to a domain at a time.
4. If successfully added, the asset is displayed in the **Recently Added** section.

### <a id="by-tagging-assets" />By tagging assets

To assign an asset (for example, a catalog, schema, table, or dashboard) to a domain, you can also tag it with the governed tag that matches the domain. You can apply tags to tables, dashboards, and Genie Agents. See [Apply tags to Unity Catalog securable objects](https://docs.databricks.com/aws/en/database-objects/tags.md).

When you tag a catalog or schema with a domain's governed tag, the tables and other data assets it contains inherit that tag and appear in the domain, so you don't have to tag each asset individually.

An inherited domain tag can't be removed from an individual asset. To change it, update the tag on the parent catalog or schema.

### <a id="assign-assets-to-subdomain" />Assign assets to a subdomain

Assigning assets to a subdomain works the same way as assigning to a domain, but uses the subdomain's tag.

* **From the subdomain page**: Open the subdomain page and click **Add to Domain**. You must have permission to apply the subdomain tag to the asset.
* **By tagging assets**: Apply the subdomain's governed tag (for example, `Finance/Tax`) to the asset.

Because the parent domain tag and the subdomain tag are independent tags, tagging an asset with `Finance/Tax` does not automatically tag it with `Finance`. However, assets in a subdomain still appear in the parent domain's browse and search results.

## <a id="customizing-domain-discover-layout" />Customize the **Discover** page, domain, and subdomain layouts

> [!WARNING]
>
> Custom section data is replicated globally. Do not use titles, subtitles, or other metadata that could compromise the security of your resources. For example, do not use titles or subtitles that contain personal or sensitive information.

1. Click **Edit Sections** at the top-right of the **Discover** page, any domain page, or any subdomain page. This takes you to a draft state of the page where you can customize existing sections, create custom sections, delete custom sections, hide default sections, and reorder sections on the page.
2. To create a new section, click the **+ Section** divider.
3. In the **Create section** modal, add a **Title** and a **Subtitle**, then select how to define the section's assets:

   * **Search query**: The section auto-fills with assets matching the search query you define. Results are ranked automatically based on relevance and usage signals; you can pin specific assets to elevate them to the top. See [Pin or reorder assets in a section](https://docs.databricks.com/aws/en/uc-semantics/domains.md#manual-pinning).
   * **Manually selected**: Select a fixed set of assets and order them yourself. See [Pin or reorder assets in a section](https://docs.databricks.com/aws/en/uc-semantics/domains.md#manual-pinning).

   Users browsing the domain or **Discover** page must have either the `BROWSE` or `VIEW` permission to see the items in the section.

![Create section modal](https://docs.databricks.com/aws/en/images/workspace/discover-page-create-section.png)

1. Click **Save**, then click **Publish** to update the current **Discover** page, domain, or subdomain layout for your organization.

For a subdomain card to appear on its parent domain page, the parent must also be republished — open the parent domain, click **Edit Sections**, then **Publish**.

### <a id="manual-pinning" />Pin or reorder assets in a section

How asset order works in a section depends on the section type. In a manually-selected section, you reorder the assets you've chosen. In a search-query section, you pin specific assets to elevate them above the auto-ranked results.

**Reorder assets in a manually-selected section**

In a manually-selected section, you select every asset that appears and define the order yourself.

1. Open the manually-selected section in edit mode, or create one.

2. In the section's edit modal, use the up and down chevrons next to each selected asset to define the order they appear in.

   ![Up and down chevrons next to selected assets in a manually-selected section](https://docs.databricks.com/aws/en/images/workspace/manually-selected-chevrons.png)

3. Click **Save** (or **Save as draft**), then **Publish** to make the section visible to consumers.

**Pin assets in a search-query section**

In a search-query section, assets are auto-selected by your query and ranked automatically. You can pin specific assets so they appear at the top, ahead of the auto-ranked results.

1. Open the search-query section in edit mode, or create one.

2. In the section's edit modal, you see all the assets matching the search query. On the asset card you want to pin, click the pin button in the bottom-right corner. The asset moves to the top of the section's results.

   ![Pin button on an asset card in a search-query section](https://docs.databricks.com/aws/en/images/workspace/section-pin-button.png)

3. Click **Save**, then **Publish**.

## <a id="domains-api" />Manage domains with the REST API

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md).

Create, read, update, and delete domains with the UI or programmatically with the domains REST API. If your organization maintains many domains, use the API to manage domains as code and automate provisioning.

Managing domains with the API requires the `MANAGE DISCOVER` permission, the same permission required to manage domains in the UI. See [Curator permissions](https://docs.databricks.com/aws/en/uc-semantics/domains.md#manage-discovery). Authenticate your requests with a Databricks personal access token for your workspace user or OAuth.

For the list of API operations with the full request and response details, see the [Domains REST API reference](https://docs.databricks.com/api/domains/v1/domain).

### <a id="domains-terraform" />Manage domains with Terraform

Manage domains as code with the `databricks_domain` resource in the Databricks Terraform provider. For example:

```hcl
resource "databricks_domain" "finance" {
  tag_key     = "finance"
  subtitle    = "Financial data assets"
  description = "Curated finance datasets for the analytics org."

  icon = {
    name  = "BANK"
    color = "#1B5E20"
  }
}
```

The provider also includes data sources for reading existing domains.

## <a id="limitations" />Limitations

* For the limit on the total number of domains and subdomains you can create per account (combined), see [Resource limits](https://docs.databricks.com/aws/en/resources/limits.md).
* For limitations on the number of tags you can apply, see [Resource limits](https://docs.databricks.com/aws/en/resources/limits.md).
* Subdomains must be created and managed from a workspace-level **Manage Discover** page. Account-level subdomain management is not available in this release.
* The REST API and Terraform provider don't support customizing **Discover** page or domain-page sections. To customize sections, use the UI. See [Customize the **Discover** page, domain, and subdomain layouts](https://docs.databricks.com/aws/en/uc-semantics/domains.md#customizing-domain-discover-layout).
* Plain-text search doesn't match a domain's display name. To find assets in a renamed domain, use the **Domain** filter.
* The REST API and Terraform provider don't support domain display names.
* You can't rename the default `system.general_domain` domain, delete it, set it to draft, or create subdomains under it. It doesn't count toward the per-account domain limit.
