Teams files: apply SharePoint metadata by folder
Teams

Teams files: apply SharePoint metadata by folder

by HubSite 365 about Daniel Anderson [MVP]

A Microsoft MVP 𝗁𝖾𝗅𝗉𝗂𝗇𝗀 develop careers, scale and 𝗀𝗋𝗈𝗐 businesses 𝖻𝗒 𝖾𝗆𝗉𝗈𝗐𝖾𝗋𝗂𝗇𝗀 everyone 𝗍𝗈 𝖺𝖼𝗁𝗂𝖾𝗏𝖾 𝗆𝗈𝗋𝖾 𝗐𝗂𝗍𝗁 𝖬𝗂𝖼𝗋𝗈𝗌𝗈𝖿𝗍 𝟥𝟨𝟧

Set SharePoint folder defaults to tag new files with client and document type values when people add them through standard Teams channels.

Key insights

  • A standard Teams channel maps to a folder in the team's SharePoint document library.
  • Choice columns can hold values such as client and document type, then appear in Teams' Shared tab.
  • SharePoint's Column Default Value Settings can assign values at client and subfolder levels.
  • The folder defaults need to be configured for each relevant folder, manually or with a script.
  • The demonstration focuses on standard channels; shared and private channels work differently.

SharePoint folder-level column defaults can apply client and document type metadata to files added through standard Microsoft Teams channels. This approach is useful for Teams owners and SharePoint site managers who want more consistent file details without asking users to fill in every column. Daniel Anderson [MVP] demonstrates the setup using a client-folder structure and files added through Teams.

What it does

Teams channel files are stored in the SharePoint document library connected to the team. In the standard-channel example, each channel corresponds to a folder in that library, so a file added through a channel's Shared tab is being added to its SharePoint location.

That connection allows a SharePoint library's columns and defaults to help organize files that people handle in Teams. The example uses two choice columns: Client and Document Type. When the folders are configured with default values, files added to them receive values such as Contoso and Proposal.

This is not automatic classification based on a file's contents. The default comes from the folder where the file is added. The method works best when users place files in the correct folders and the folder's meaning reliably matches the value to apply.

Who it is for and what you need

This setup is aimed at people who manage a team's SharePoint library or shape its file structure, as well as Teams users who add and find documents. The starting point is a Team with standard channels and a SharePoint document library behind it.

Plan the folder structure before configuring defaults. The demonstration uses client folders, with subfolders for Proposals, Service Agreements, and Contracts. It also adds columns for Client and Document Type, with choice values matching the clients and document categories.

The channel type matters: the walkthrough covers standard channels, and shared and private channels work differently. A consistent folder layout across client folders also makes the same document categories easier to configure and use.

How it works

  1. Open the team's SharePoint document library and check the folders that correspond to its standard channels. The channel's Shared tab provides access to files in the connected SharePoint location.

  2. Add a Client choice column and enter the client values, then add a Document Type choice column with values such as Proposal, Service Agreement, and Contract. The demonstration also suggests using a site column for Document Type when reuse across libraries is desired.

  3. In SharePoint, open Library Settings, choose More Library Settings, and open Column Default Value Settings. Select a client folder and set its Client default, such as Contoso.

  4. Configure the document-type defaults on the relevant subfolders. Set Contracts to Contract, Proposals to Proposal, and Service Agreements to Service Agreement. Repeat the configuration for the other client folders.

  5. Add a test file through the corresponding channel's Shared tab. Check the Client and Document Type columns to confirm that the folder defaults were applied.

Once files have these values, they can be filtered by client or document type in the library. The demonstration also adds a Review Date column and asks Copilot in SharePoint to produce an HTML report of documents with past review dates, with filters for client and document type. That example shows how structured columns can support reporting; it depends on adding and maintaining the metadata.

The same folder defaults can apply when files are added through a OneDrive shortcut to the folder, according to the demonstration. It also creates an HTML view of the library and opens that view from a channel's Shared tab. These are additional ways to work with the SharePoint library, rather than substitutes for setting up the columns and folder defaults.

Limitations and alternatives

The main operational cost is setup. Each relevant folder needs its defaults, and the example configures those values by hand. The demonstration notes that scripting is another way to set them up, which may be useful when the folder structure is repeated across many clients.

Folder defaults rely on people adding files to the intended folder. A document placed in the wrong location may inherit values that do not describe it correctly. Check the resulting metadata and the library view as part of testing, especially when changing the folder structure or adding new client folders.

Existing folder organization remains part of this approach: it uses the location of a file to determine default values. For broader reporting, the example adds a review-date field and a view, but users still need the library columns and values to reflect their working process. The demonstrated channel mapping and setup apply to standard channels; shared and private channels need a different approach.

Sources

Frequently asked questions

How do I add metadata to files in a Teams channel?

Create columns in the connected SharePoint document library, then use Column Default Value Settings to assign values to the relevant folders. Files added through the corresponding standard channel can receive those defaults.

Can Teams files inherit a document type from a folder?

Yes. For example, set a Document Type default of Contract on a Contracts folder. Files added there can receive that value.

Does this setup work for shared and private Teams channels?

The demonstrated setup is for standard channels. Shared and private channels work differently.

Can folder metadata defaults be automated?

The folder defaults can be configured manually or with a script. The demonstration sets them manually and mentions scripting as an alternative.