Office 365 – SharePoint online: Creating managed metadata column using site script and site design
Hi Friends,
Recently I came across a requirement to create managed metadata column through site script which should be available after creating the site.
I tried different approaches and tried to find many alternatives but no fruitful information found after tried multiple column schema xml I got it working.
Will start with showing the term store.

Figure 1: Office 365 – Term store
I have created a sample group ‘Test Group’ and underneath it a term set named as ‘Business Area’ with some sample terms.
Managed metadata column in SharePoint online works same as on premise one. There are actually two columns in the list one column is with of type ‘TaxonomyFieldType’ and other column is created with the with format fieldnameTaxHTField0 of type Note.
The Taxonomy column holds Term name and a lookup with the TaxonomyHiddenList. TaxonomyHiddenList can be found at /Lists/TaxonomyHiddenList/AllItems.aspx this list will hold the details of the terms that are used in any managed metadata column.
Hence for creating managed metadata column through site design we need to create two columns, one of type Note which we need to use while creating actual managed metadata column.
We need multiple GUIDs while creating the metadata column,you need to replace values from your tenant, as follows –
- SspId Taxonomy term store guid
- GroupId Taxonomy term set group guid
- TermSetId Taxonomy term set guid
- TextField Note column guid
Following is the site design JSON file. This include both the columns.( Save content in .json file)
I have created the site design using ‘SharePoint online management shell’

Figure 2: Office 365 – Setting site script and design through PowerShell
Let’s try now creating new site using the newly created site design.

Figure 3: Office 365 –Create new site with new site design
Looking like we got success with creating new columns.

Figure 4: Office 365 – Success status shown
Let’s add ‘Business Area’ column in document library to test if the column is working or not.

Figure 5: Office 365 – Add column to document library
Let’s try uploading new document in library and check if the column is showing the values form term set.

Figure 6: Office 365 – Terms are displayed for option in column
The column provisioned through the site design is working as expected.
Let’s check the TaxonomyHiddenList now.

Figure 7: Office 365 – Taxonomy Hidden List
And if we check by editing item properties you can see same GUIDs we added in JSON file.

Figure 8: Office 365 – Term store, term set and term ID visible TaxonomyHiddenList
Considering 30 verbs limitation (as on date) per site design, this may not be a good solution to spend two verbs for a single managed metadata column.
The purpose of this article is to save some time if anyone have same kind of requirement.
Sharing is caring.
Helpful Article!!
good one
Thank you for this great article! There’s one thing that I don’t understand. Where can I get that Note field GUID (FIELD ID) value?