SharePoint 2019 Configure Hybrid Content Types

The SharePoint hybrid content types helps to maintain a single set of content types across SharePoint on-premises server and SharePoint online. The shared content types are maintained at SharePoint online and its read only copy is maintained at SharePoint on-premises server.

Overview

 
Managed metadata service application in SharePoint is primarily used to set up a taxonomy for representing hierarchical business information. It also supports setting up a content type hub which centralizes the content types used across the sites.
 
In this article, we will explore how we can set up hybrid content types. Also, we will configure synchronization between cloud and on-premises content types.
 

SharePoint Hybrid Content Types

 
The SharePoint hybrid content types help in maintaining a single set of content types across SharePoint on-premises server and SharePoint online. The shared content types are maintained at SharePoint online and its read-only copy is maintained at the SharePoint on-premises server. The hybrid content type propagates the updates from SharePoint online to SharePoint on-premises server.

 
Content Type Hub in SharePoint Online

 
Content type hub in SharePoint Online is a predefined site collection. Follow the below steps to locate your content type hub.
  • Open SharePoint Online root site.
  • Navigate to "Site settings".
  • Under Site Collection Administration, click Content type publishing.
SharePoint 2019 Configure Hybrid Content Types
  • Under Hubs section, the content type hub URL for the tenant is listed along with the subscribed content types.
  • Click the hub URL to navigate to site content type page of content type hub.
  • Create a new content type.
SharePoint 2019 Configure Hybrid Content Types
  • Now, let’s add existing site columns to our content type.
SharePoint 2019 Configure Hybrid Content Types
 

Copy SharePoint Server Content Types to SharePoint Online

 
To configure hybrid content types, we should first copy the existing content types in SharePoint on-premises server to SharePoint online. We can select a set of content types to start with.
 
Consider an example in which the below content type exists in SharePoint Server on-premises.
 
SharePoint 2019 Configure Hybrid Content Types
 

Copy Content Types

  
Copy-SPContentTypes PowerShell cmdlet helps us to copy the content types from SharePoint on-premises to SharePoint online.
 
Open SharePoint 2019 Management Shell with administrator privileges.

Run the below command to capture credentials to connect to SharePoint online.
  1. $credential = Get-Credential  
Run the below command to copy content types from SharePoint Server on-premises to SharePoint online.
  1. Copy-SPContentTypes -LocalSiteUrl http://localsite/   
  2. -LocalTermStoreName "Managed Metadata Service Application "   
  3. -RemoteSiteUrl https://contoso.sharepoint.com/   
  4. -ContentTypeNames @("ContentTypeA""ContentTypeB")   
  5. -Credential $credential  
Parameters specified are as follows,
  • LocalSiteUrl: URL of the SharePoint Server on-premises site where your taxonomy store is located.
  • LocalTermStoreName: Name of managed metadata service application in SharePoint Server on-premises.
  • RemoteSiteURL: URL of SharePoint Online site where term store is located (https://<TenantName>.sharepoint.com).
  • ContentTypeNames: Content types in SharePoint Server on-premises to be copied to SharePoint online.
  • Credential: Office 365 global administrator credentials.
Example
  1. Copy-SPContentTypes -LocalSiteUrl http://portal.contoso.com   
  2. -LocalTermStoreName "Managed Metadata Service Application"   
  3. -RemoteSiteUrl https://contoso.sharepoint.com   
  4. -ContentTypeNames @("SP OnPrem Vendor")   
  5. -Credential $credential  
Once the PowerShell cmdlet is run successfully, the SharePoint server on-premises content types will be copied to SharePoint online.
 

Configure hybrid SharePoint Content Types

 
The next step is to set up the hybrid connection, which will allow replication from SharePoint online back to SharePoint server on-premises. Follow the below steps to download and run a hybrid picker tool.
  • Open SharePoint 2019 Central Administration site.
  • Click the link from green tool-tip “Click here to enable Hybrid experiences.”
SharePoint 2019 Configure Hybrid Content Types 
  • An executable file “HybridSPSetup.exe” will be downloaded to the file system.
  • Double click HybridSPSetup.exe to install.
  • The wizard will open to connect your on-premises SharePoint Server farm with your Office 365 tenant. Click Next.
SharePoint 2019 Configure Hybrid Content Types
  • In order to set up a hybrid environment for SharePoint or OneDrive for Business (OD4B), we need to provide administrator credentials for both SharePoint Server and Office 365. Click Next.
SharePoint 2019 Configure Hybrid Content Types 
  • Pre-requisites check report will be generated.
SharePoint 2019 Configure Hybrid Content Types
 
In case of any errors regarding SPO365LinkSettings cmdlet, please follow the below steps and re-run SharePoint Hybrid Configuration Wizard.
  • Open SharePoint 2019 Management Shell with administrator privileges.
  • Run the below command
  1. Set-SPO365LinkSettings -MySiteHostUrl "http://mysites.contoso.com" -RedirectSites $true  
SharePoint 2019 Configure Hybrid Content Types
  • Install the default features available in the hybrid environment wizard. The configuration wizard will run.
  • After the successful run of the hybrid configuration wizard, the SharePoint Server environment will be connected to Office 365.
  • Select Hybrid taxonomy and content type.
SharePoint 2019 Configure Hybrid Content Types
  • Click Input parameters.
SharePoint 2019 Configure Hybrid Content Types
 
In the Local Site URL, specify SharePoint server on-premises site URL.

In the Local Term Store Name, specify SharePoint server on-premises managed service application name.
 

Check the box for Hybrid content type


In the Remote content type, specify the SharePoint online content types to be used for the hybrid. If kept blank, all the SharePoint online content types will be replicated to SharePoint server on-premises.
  • Click Validate.
  • Once validation is successful, click OK.
  • Click Next. The hybrid configuration wizard will run.
SharePoint 2019 Configure Hybrid Content Types
  • On a successful run of SharePoint hybrid configuration wizard, the configuration summary will be shown.
SharePoint 2019 Configure Hybrid Content Types
  • Click "Close".
  • Perform IISReset on SharePoint server on-premises.

Timer Job

 
Now, return back to SharePoint on-premises site, verify if content types from SharePoint online are replicated. Mostly they are not replicated, because hybrid content types runs as a SharePoint timer job.
  • Open SharePoint 2019 central administration.
  • From the left menu, click Monitoring.
  • Under Timer Jobs, click Check job status.
SharePoint 2019 Configure Hybrid Content Types
 
  • From the left menu, click "Job Definitions".
  • Find and select a timer job named “Content Type Replication”.
SharePoint 2019 Configure Hybrid Content Types
 
  • Run the timer job by clicking “Run Now”.
  • From left menu, click Running Jobs. Wait for the timer job to finish running.
SharePoint 2019 Configure Hybrid Content Types 
 

Verify Content Types Replication

  • Open SharePoint on-premises site.
  • Navigate to site settings.
  • Under Site Collection Administration, click Content type publishing.
  • Content type hub from SharePoint online will be listed.
SharePoint 2019 Configure Hybrid Content Types
 

Summary

 
The SharePoint hybrid content types helps to maintain a single set of content types across SharePoint on-premises server and SharePoint online. Hybrid content type replicates the content types directly to SharePoint on-premises site collection rather than to content type hub.