Skip to main content
< All Articles

4 ways to tag folders with metadata in 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.

Details pane for a file showing its Client and Document Type metadata

 

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

Details pane for a folder without the metadata fields

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 Quick edit button in a SharePoint document library
  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 Folder tagged with Client and Document Type metadata using Quick edit

Pros

  • Allows you to “tag” folders with metadata
  • Allows user to filter folders with metadata, just like files Filters pane filtering by client and returning the tagged folder

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. Files inside a tagged folder that did not inherit the folder metadata
  • 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 SharePoint Settings gear menu with Site information highlighted
  2. Then click on View all site settings Site information panel with the View all site settings link
  3. Click on Site content types Site content types link under Web Designer Galleries in site settings
  4. Hit Create button to create a new Content Type Create button on the Site Content Types page
  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 Folder-based Client Docs content type with links to add site columns
  7. Here is an example of one new column I created using Add from new site column option Creating a Client Name choice site column
  8. Repeat for all other columns you need to have at the folder level. This is how it should look like Client Docs folder content type with Client Name and Client Manager columns
  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 SharePoint Settings gear menu with Library settings highlighted
  10. Click on Advanced Settings Advanced settings link in classic library settings
  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) Advanced library settings with Allow management of content types set to Yes
  12. On the same page, set Make “New Folder” command available? to No (because we do not want users to create new “regular” folders) Make New Folder command available set to No in advanced library settings
  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 Add from existing site content types link in library settings
  16. Add the custom Folder Content Type you created above Adding the Client Docs content type to the library
  17. Tweek the view on the document library so folder level columns are displayed in a view Edit view columns panel with Client Name and Client Manager selected
  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 New Folder form with Client Name and Client Manager metadata
  20. And… we DID IT! Custom folder in the library showing its Client Name and Client Manager

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.

Column default value settings for a folder in a document library

 

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.

Document set with metadata in a projects library

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! 😊
Gregory Zelfond, the SharePoint Maven - profile photo

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?