Browse all topics
SharePoint & OneDrive

SharePoint document libraries — a deep dive

Document libraries are the workhorse of SharePoint. Here's what they actually do beyond "a folder in the cloud."

A document library in SharePoint Online looks like a folder full of files. Under the hood it's a structured list with rich metadata, versioning, and permissions — and once you treat it as such, much more becomes possible.

What a library actually is

Every document library is a list of items, where each item is a file (or folder). Each item has built-in columns (Name, Modified, Modified By) and can have custom columns you define — text, number, choice, person, date, taxonomy. Custom columns let you tag content for search, filtering, and views.

Views

Views are saved configurations of columns, filters, sorting, and grouping. The same library can have a flat view for everyone, a grouped-by-project view for the PMO, and a filtered "my documents" view. Modern SharePoint also supports:

  • Tiles view for visual content libraries.
  • Conditional formatting with column-based highlighting.
  • JSON formatting for custom rendering of column values.

Views are surfaced as URLs, so you can bookmark or link to a specific view.

Versioning and history

Document libraries keep major version history by default (up to 500 versions). Older versions are recoverable in place. You can also turn on minor versions (drafts vs published) for content that needs an approval flow.

Co-authoring

Office files in a SharePoint library are co-authored — multiple users can edit simultaneously in Word, Excel, or PowerPoint, both in the desktop and web apps. Locking, presence, and merge happen automatically.

Approvals, retention, and labels

A library can have:

  • Content approval — items aren't visible to non-editors until approved.
  • Retention policies from Purview applied automatically.
  • Sensitivity labels at the file level, inherited from defaults or applied by users.
  • Information barriers to prevent specific groups from accessing.

Sync, share, and the file explorer experience

Libraries can be synced to a workstation via OneDrive's sync client, and added as a shortcut to a user's OneDrive (the "Add shortcut to OneDrive" button). Both feel like local folders to the user but are still subject to all the SharePoint permissions, retention, and policies above.

Treating a library as "just a folder" works until it doesn't. Once the metadata, views, and policies are in place, you're using SharePoint the way it was designed.