2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								import FeatureAvailability from '@site/src/components/FeatureAvailability ';
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-05-14 08:57:53 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Domains
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< FeatureAvailability / >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Starting in version `0.8.25` , DataHub supports grouping data assets into logical collections called **Domains** . Domains are curated, top-level folders or categories where related assets can be explicitly grouped. Management of Domains can be centralized, or distributed out to Domain owners Currently, an asset can belong to only one Domain at a time.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Domains Setup, Prerequisites, and Permissions
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								What you need to create and add domains:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  **Manage Domains** platform privilege to add domains at the entity level 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-20 11:45:46 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can create this privileges by creating a new [Metadata Policy ](./authorization/policies.md ).
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Using Domains
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Creating a Domain
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To create a Domain, first navigate to the **Domains**  tab in the top-right menu of DataHub.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/domains-tab.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Once you're on the Domains page, you'll see a list of all the Domains that have been created on DataHub. Additionally, you can
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								view the number of entities inside each Domain.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master/imgs/list-domains.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								To create a new Domain, click '+ New Domain'.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/create-domain.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-12-06 20:52:13 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Inside the form, you can choose a name for your Domain. Most often, this will align with your business units or groups, for example
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								'Platform Engineering' or 'Social Marketing'. You can also add an optional description. Don't worry, this can be changed later.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#### Advanced: Setting a Custom Domain id
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Click on 'Advanced' to show the option to set a custom Domain id. The Domain id determines what will appear in the DataHub 'urn' (primary key)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								for the Domain. This option is useful if you intend to refer to Domains by a common name inside your code, or you want the primary
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								key to be human-readable. Proceed with caution: once you select a custom id, it cannot be easily changed.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/set-domain-id.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								By default, you don't need to worry about this. DataHub will auto-generate a unique Domain id for you.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Once you've chosen a name and a description, click 'Create' to create the new Domain.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Assigning an Asset to a Domain
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can assign assets to Domain using the UI or programmatically using the API or during ingestion.
							 
						 
					
						
							
								
									
										
										
										
											2022-07-11 09:37:38 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								#### UI-Based Assignment
  
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								To assign an asset to a Domain, simply navigate to the asset's profile page. At the bottom left-side menu bar, you'll
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								see a 'Domain' section. Click 'Set Domain', and then search for the Domain you'd like to add to. When you're done, click 'Add'.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/set-domain.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								To remove an asset from a Domain, click the 'x' icon on the Domain tag.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  Notice: Adding or removing an asset from a Domain requires the `Edit Domain` Metadata Privilege, which can be granted
  
						 
					
						
							
								
									
										
										
										
											2022-07-01 20:35:55 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  by a [Policy](authorization/policies.md).
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								#### Ingestion-time Assignment
  
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-07-11 09:37:38 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								All SQL-based ingestion sources support assigning domains during ingestion using the `domain`  configuration. Consult your source's configuration details page (e.g. [Snowflake ](./generated/ingestion/sources/snowflake.md )), to verify that it supports the Domain capability.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								:::note
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Assignment of domains during ingestion will overwrite domains that you have assigned in the UI. A single table can only belong to one domain.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								:::
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Here is a quick example of a snowflake ingestion recipe that has been enhanced to attach the **Analytics**  domain to all tables in the **long_tail_companions**  database in the **analytics**  schema, and the **Finance**  domain to all tables in the **long_tail_companions**  database in the **ecommerce**  schema.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```yaml
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								source:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  type: snowflake
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  config:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    username: ${SNOW_USER}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    password: ${SNOW_PASS}
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    account_id:
							 
						 
					
						
							
								
									
										
										
										
											2022-07-11 09:37:38 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    warehouse: COMPUTE_WH
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    role: accountadmin
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    database_pattern:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      allow:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        -  "long_tail_companions"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    schema_pattern:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      deny:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        -  information_schema
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    profiling:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      enabled: False
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    domain:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Analytics:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        allow:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          -  "long_tail_companions.analytics.*"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      Finance:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        allow:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          -  "long_tail_companions.ecommerce.*"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-07-11 15:08:26 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								:::note
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								When bare domain names like `Analytics`  is used, the ingestion system will first check if a domain like `urn:li:domain:Analytics`  is provisioned, failing that; it will check for a provisioned domain that has the same name. If we are unable to resolve bare domain names to provisioned domains, then ingestion will refuse to proceeed until the domain is provisioned on DataHub.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								:::
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								You can also provide fully-qualified domain names to ensure that no ingestion-time domain resolution is needed. For example, the following recipe shows an example using fully qualified domain names:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```yaml
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								source:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  type: snowflake
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  config:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    username: ${SNOW_USER}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    password: ${SNOW_PASS}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    account_id:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    warehouse: COMPUTE_WH
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    role: accountadmin
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    database_pattern:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      allow:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        -  "long_tail_companions"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    schema_pattern:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      deny:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        -  information_schema
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    profiling:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      enabled: False
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    domain:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "urn:li:domain:6289fccc-4af2-4cbb-96ed-051e7d1de93c":
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        allow:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          -  "long_tail_companions.analytics.*"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      "urn:li:domain:07155b15-cee6-4fda-b1c1-5a19a6b74c3a":
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        allow:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								          -  "long_tail_companions.ecommerce.*"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Searching by Domain
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Once you've created a Domain, you can use the search bar to find it.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/search-domain.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Clicking on the search result will take you to the Domain's profile, where you
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								can edit its description, add / remove owners, and view the assets inside the Domain.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/domain-entities.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Once you've added assets to a Domain, you can filter search results to limit to those Assets
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								within a particular Domain using the left-side search filters.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/search-by-domain.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								On the homepage, you'll also find a list of the most popular Domains in your organization.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
									
										
										
										
											2023-09-14 11:34:21 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  < img  width = "70%"   src = "https://raw.githubusercontent.com/datahub-project/static-assets/master//imgs/browse-domains.png" / > 
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Additional Resources
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Videos
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								**Supercharge Data Mesh with Domains in DataHub**
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< p  align = "center" >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< iframe  width = "560"  height = "315"  src = "https://www.youtube.com/embed/CyvujJWV-8A"  title = "YouTube video player"  frameborder = "0"  allow = "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"  allowfullscreen > < / iframe >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / p >  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### GraphQL
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [domain ](../graphql/queries.md#domain ) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [listDomains ](../graphql/queries.md#listdomains ) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [createDomains ](../graphql/mutations.md#createdomain ) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [setDomain ](../graphql/mutations.md#setdomain ) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [unsetDomain ](../graphql/mutations.md#unsetdomain ) 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								#### Examples
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								**Creating a Domain**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```graphql
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								mutation createDomain {
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  createDomain(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    input: { name: "My New Domain", description: "An optional description" }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  )
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This query will return an `urn`  which you can use to fetch the Domain details.
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-03-19 09:17:10 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Create a Nested Domain
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```graphql
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								mutation createDomain {
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  createDomain(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    input: {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      name: "Verticals"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      description: "An optional description"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      parentDomain: "urn:li:domain:marketing"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  )
							 
						 
					
						
							
								
									
										
										
										
											2024-03-19 09:17:10 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This query will create a new domain, "Verticals", under the "Marketing" domain.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								**Fetching a Domain by Urn**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```graphql
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								query getDomain {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  domain(urn: "urn:li:domain:engineering") {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    urn
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    properties {
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      name
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      description
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    entities {
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      total
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								**Adding a Dataset to a Domain**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```graphql
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								mutation setDomain {
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  setDomain(
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    entityUrn: "urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleHdfsDataset,PROD)"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    domainUrn: "urn:li:domain:engineering"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  )
							 
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  Pro Tip! You can try out the sample queries by visiting `<your-datahub-url>/api/graphiql`.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### DataHub Blog
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-28 23:34:33 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Just Shipped: UI-Based Ingestion, Data Domains & Containers, Tableau support, and MORE! ](https://medium.com/datahub-project/just-shipped-ui-based-ingestion-data-domains-containers-and-more-f1b1c90ed3a ) 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## FAQ and Troubleshooting
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								**What is the difference between DataHub Domains, Tags, and Glossary Terms?**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								DataHub supports Tags, Glossary Terms, &  Domains as distinct types of Metadata that are suited for specific purposes:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  **Tags**: Informal, loosely controlled labels that serve as a tool for search &  discovery. Assets may have multiple tags. No formal, central management. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  **Glossary Terms**: A controlled vocabulary, with optional hierarchy. Terms are typically used to standardize types of leaf-level attributes (i.e. schema fields) for governance. E.g. (EMAIL_PLAINTEXT) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  **Domains**: A set of top-level categories. Usually aligned to business units / disciplines to which the assets are most relevant. Central or distributed management. Single Domain assignment per data asset. 
						 
					
						
							
								
									
										
										
										
											2024-04-30 12:54:54 +09:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-09-09 17:20:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Related Features
  
						 
					
						
							
								
									
										
										
										
											2022-02-02 09:07:51 -08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2025-04-16 16:55:51 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Glossary Terms ](./glossary/business-glossary.md ) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [Tags ](./tags.md )