SharePoint Document Library: 9 Questions Owners Ask

Rows of steel shelving holding color-coded, labeled archive boxes in a records room, a picture of how a SharePoint document library keeps files organized

A SharePoint document library is a folder-like container with a database behind it, and that database is what makes it better than a file server share. Below are the nine questions owners ask most, with the limits Microsoft publishes and what they mean for a 10 to 200 person company.

The limits at a glance

LimitMicrosoft's number
Files and folders per library30 million
Largest single file250 GB
List view threshold5,000 items per query
File path, including name400 characters
Unique permissions50,000 supported, 5,000 recommended
Items to sync to one computer300,000 recommended
Deleted item recovery93 days

SharePoint document library basics

What is a SharePoint document library?

It's where SharePoint stores your files, along with data about each one: who changed it, when, what version it is, and any columns you add, like client or status. Every SharePoint site has at least one. A SharePoint library gives you version history, search, sharing and recovery that a plain network folder can't.

Should I use folders or columns?

Use a few top-level folders, then columns for everything else. Folders force one way to sort files. Columns like client, year and document type let each person filter and group the same files their own way. Deep folder trees also push you toward the path-length limit covered below, which is a second reason to keep them shallow.

Where do my Teams files live?

Files in a Teams channel are stored in a SharePoint library behind that team, so they follow that library's permissions and limits. Files you share in a private chat go to OneDrive instead. If your team asks where the project folder went, check the Files tab and choose Open in SharePoint.

Limits that matter

How many files can a SharePoint library hold?

Microsoft's service description says "a library can have up to 30 million files and folders." A single file can be up to 250 GB. Almost no small business gets near either number. The limits you'll hit first are the ones below.

What is the 5,000 item list view threshold?

It's the number of items a single query can process at once. Microsoft says operations that exceed the 5,000-item limit are blocked, and you may see a warning once a list passes 3,000 items. A big library still works. A view that tries to sort or filter on an unindexed column across all of it does not, so index the columns you filter on.

What are the file name and path limits?

The whole decoded path, including the file name, can't pass 400 characters. Microsoft's restrictions page also bans characters such as " * : < > ? / \ | in names, plus leading and trailing spaces. Long, nested folder names copied over from a file server are the usual cause of failed uploads.

Permissions, sync and recovery

How do SharePoint document library permissions work?

Items inherit the library's permissions by default. Break inheritance on one folder and it gets its own list. Microsoft supports up to 50,000 unique permissions in a list or library, but recommends staying under 5,000. Share through groups, not named individuals, and keep exceptions rare. Our SharePoint permissions guide covers the setup.

Can I sync a library to my computer?

Yes, through the OneDrive sync app, but Microsoft recommends syncing no more than 300,000 items across your cloud storage. Sync only the libraries a person works in daily. Our SharePoint sync guide walks through the fixes when it stalls.

How long can I recover a deleted file?

Microsoft's support page says SharePoint items are retained for 93 days from the time you delete them from their original location. After that they're gone unless you keep a separate backup. For compliance data, 93 days isn't a retention policy.

If you're starting from scratch, read how to set up SharePoint for a small business first, and SharePoint vs OneDrive if you're unsure where files belong.

By Latoya Reed, who leads cloud and Microsoft 365 work at The NetSys Group. NetSys has delivered managed IT, cybersecurity, and cloud services since 1998 to businesses across NY, NJ, CT, PA, and Southwest Florida.

SharePoint & OneDrive Migration

Discuss SharePoint & OneDrive Migration for your business.

Tell us about your current systems, the result you need and your timeline. We will discuss the work, responsibilities and pricing before you decide on an engagement.

Explore SharePoint & OneDrive Migration 845-203-3914