This blog will show how to add taxonomy columns to libraries and then turn them on for SharePoint Premium Taxonomy Tagging. This developer-focused blog will provide the necessary PowerShell commands to add a Taxonomy column to a library and update the field property ‘IsDocTagsEnabled’ to TRUE. By doing so, the column will be activated for Taxonomy Tagging, allowing documents to be automatically tagged when added to the library.

Previous Blog: Effortless Document Tagging with Microsoft Syntex Taxonomy Tagging – Leon Armston’s Blog

SharePoint Premium Taxonomy Tagging allows existing Managed Metadata (termstore) columns to be added to a library. Then AI will automatically tag documents matching terms in the termstore. The tagged documents can then help users to find documents through browsing and search.

Add Taxonomy Tagging Columns with PowerShell rather than the UI

In this blog I will show you how to deal with the creation of Taxonomy Tagging columns programmatically.

NOTE: Taxonomy Tagging at the moment will only tag new files added after the column is enabled for Taxonomy Tagging & will not be triggered on existing files loaded before.

Script Required

As previously mentioned SharePoint Premium Taxonomy Tagging requires a Taxonomy (Managed Metadata) column to be added to a library and for the site to be enabled for Taxonomy Tagging. In the column properties the checkbox “Automatically tag documents with terms” to be turned on (Yes)

How SharePoint Premium Taxonomy Tagging is configured in the UI

Here is the field properties for a field that is enabled for Taxonomy Tagging – note IsDocTagsEnabled is equal to True. This is the magic property which when turned on enables a Taxonomy column to work with SP Premium Taxonomy Tagging.

Below is a script which is uses PnP PowerShell to add a taxonomy column to a library and enable it for Taxonomy tagging. Change lines 1-5 to reflect the details of your environment.

This script creates a new taxonomy column in a list pointed to a specific term path. Finally the property IsDocTagEnabled is then changed to true.

Below is the PowerShell to enable an existing taxonomy column for Taxonomy Tagging. Again change lines 1-4 to reflect the details of your environment and existing taxonomy column.


SharePoint Premium Taxonomy Tagging is a great feature and enables you to auto tag files with existing taxonomies you have with minimal configuration. The PowerShell scripts shows how to programmatically add a taxonomy tagger column to libraries & how to enable existing taxonomy columns for taxonomy tagger

Some suggestions for programmatically adding/enabling columns for Taxonomy Tagging.

  • Bulk add a column to multiple libraries in multiple sites.
  • Add Taxonomy Tagger columns to libraries as part of a site provisioning solution
  • Bulk create Taxonomy Tagger columns in multiple libraries and then use to auto tag content as part of a migration.

Taxonomy Tagger is very valuable when used with your existing organisational taxonomies i.e. categories, document types, customers, assets etc. This allows auto tagging with low administrative effort and then enables users to find tagged files easier.

Let me know how you are using SharePoint Premium Taxonomy Tagger and whether you have any questions or feedback. Happy to help!

Leave a Reply