Skip to main content
< All Articles

4 ways to tag folders with metadata in SharePoint

Posted on November 6, 2019
SharePoint

From my posts, you probably already know that I am a huge advocate and proponent of metadata in SharePoint. The major limitation that exists in SharePoint is that you can only assign metadata to the file and not a folder. If you try to tag a folder in SharePoint – you are out of luck. However, there are a few tricks in the book if you do want to assign metadata to folders, and that is what this post is all about. Now, some of these tricks are more of workarounds and not the real ways to tag a folder. Other than Option # 4, all of the options described below are “gimmicks.” I am generally a modest Jewish guy, but today, I will be a bad boy and share with you some of those “undocumented” tricks on how to tag folders with metadata in SharePoint. Psst, don’t tell anyone.

What is the problem with folder metadata?

If your document library has custom metadata columns and you try and tag the file – you get a document information panel where you can assign metadata to the file.

4waystagfoldersmetadata2 E1565733843657

 

However, if you try to do the same to a folder – you won’t get the same ability.

4waystagfoldersmetadata3a

But, as mentioned above, there are a few cool workarounds that will help you tag folders with metadata in SharePoint, each with pros and cons, so here are your options.

Option 1: Quick Edit

While you can’t tag folders with metadata in SharePoint via a Document Information Panel I mentioned above, you can easily do so via Quick Edit function.

  1. Navigate to the document library where you have folders and custom metadata
  2. In the ribbon above the library, click Quick Edit 4waystagfoldersmetadata4
  3. Your library will now open up in Excel-like mode
  4. You can now tag folders with metadata in SharePoint! tag folders with metadata in SharePoint
  5. Click Exit quick edit to save changes 4waystagfoldersmetadata6

Pros

  • Allows you to “tag” folders with metadata
  • Allows user to filter folders with metadata, just like files 4waystagfoldersmetadata8

Cons

  • Folder metadata does not propagate to the files underneath. Whatever you tag a folder with does not make it to the file level underneath. 4waystagfoldersmetadata7
  • Related to the above, you could have one metadata value at the folder level and completely different metadata at the file level – this might lead to confusion.

Option 2: Custom Content Type

Another way to “tag” folders with metadata is to create a custom content type based on folders. So instead of the “regular” folder, you will be tagging a new custom content type we will create. Here is how to do this:

  1. Gear Icon > Site Information 4waystagfoldersmetadata9
  2. Then click on View all site settings 4waystagfoldersmetadata10
  3. Click on Site content types 4waystagfoldersmetadata11
  4. Hit Create button to create a new Content Type 4waystagfoldersmetadata12
  5. Create a name for your folder Content Type, then choose the Folder Content Types and Folder drop-downs, as depicted in the image below. Click OK. tag folders with metadata in SharePoint
  6. Next, either create new site columns (folder-level metadata) or add existing ones if they exist at a site level 4waystagfoldersmetadata14
  7. Here is an example of one new column I created using Add from new site column option 4waystagfoldersmetadata15
  8. Repeat for all other columns you need to have at the folder level. This is how it should look like 4waystagfoldersmetadata16
  9. Now that the folder content type has been created, we need to add it to the library. Navigate to the document library, then click Gear Icon > Library Settings 4waystagfoldersmetadata17
  10. Click on Advanced Settings 4waystagfoldersmetadata18
  11. Set Allow management of content types? radio button to Yes (we do this so we can add our custom content type to the document library) 4waystagfoldersmetadata19
  12. On the same page, set Make “New Folder” command available? to No (because we do not want users to create new “regular” folders) 4waystagfoldersmetadata20
  13. Click OK at the bottom of the page
  14. Honey, we are almost there, hang on with me for another minute
  15. Next, under Content Types section (this is the section that appeared once we allowed content types in Step 11), click on Add from existing site content types 4waystagfoldersmetadata21
  16. Add the custom Folder Content Type you created above 4waystagfoldersmetadata22
  17. Tweek the view on the document library so folder level columns are displayed in a view 4waystagfoldersmetadata26
  18. Let’s check it out now – navigate to the document library and click New and select the Custom Folder Content Type from the drop-down tag folders with metadata in SharePoint
  19. On the next screen, assign it a folder name + metadata for the folder. Click Save 4waystagfoldersmetadata25
  20. And… we DID IT! 4waystagfoldersmetadata27

Pros

  • Allows you to “tag” folders with metadata
  • Allows user to filter folders with metadata, just like files

Cons

  • A bit of elaborate setup. Almost redundant if you opt for Document Sets (Option 4) below.
  • You have to create all new folders via this custom content type (New drop-down button). If the user drags (uploads) a folder from the desktop to SharePoint – it will be a “regular” folder that cannot be tagged. However, the user will be able to re-associate a “regular” folder and make it a custom content type folder in the Document Information Panel. tag folders with metadata in SharePoint
  • Just like with Option 1, folder metadata does not propagate to the files underneath, and as a result, you can also end up with different metadata values at the folder level and the file level underneath.

Option 3: Column Default Value Settings

Technically speaking, this trick does not allow the user to assign metadata to folders themselves.  But it does allow us to specify which metadata will be assigned to the files dropped into the folders. The technique I am talking about is called Column Default Value Settings. I documented step-by-step instructions on it in this post.

Autotagfoldersmetadata8

 

Pros

  • Allows to auto-assign metadata to the files dropped into the folders

Cons

Option 4: Document Sets

The only correct way to assign metadata to folders is to use document sets. Just like the trick above, you will be creating a custom content type, but it is a unique content type that exists in SharePoint and a pretty darn good one! In one of my earlier posts, I called Document Sets – the hidden gem of SharePoint. And there is a reason for this. Not only you will be able to assign metadata to folders, but you will also be able to propagate this metadata to the files underneath (which makes total sense).

I described in greater detail how to set up Document Sets in this post.

4waystagfoldersmetadata1

Pros

  • The only “legal” way to assign metadata to folders in SharePoint

Cons

  • Don’t you dare to say anything negative about document sets – they are one of my favorite features in SharePoint. They are perfect! 😊

About Me

I’m Greg Zelfond, a U.S. based SharePoint consultant, and I provide affordable out-of-the-box SharePoint consulting, training, and configuration assistance to small and medium-sized businesses all over the world.

Need help?