Skip to main content

How to Create a Document Library in SharePoint Online

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

A document library is where a SharePoint site keeps files, the way a list keeps rows of data. Every site starts with one, Documents, but a library of its own lets a set of files have their own permissions and their own place. It takes a minute to create.

The Overtime Timesheet series needs one for payroll: each month a flow saves an Excel workbook of approved overtime there, and only payroll staff can open it.

Prerequisites​

  • A SharePoint site you own. Microsoft's Create a document library in SharePoint notes that "site owners can create or manage lists. Other team members might not be able to." If you created the site, you're its owner.

Step 1: Select New, Then Document Library​

On the site's home page, select + New → Document library:

The New menu of a SharePoint site home page listing Page, News post, App, Dashboard, Document library, List and News link, with Document library outlined in red

Step 2: Choose Blank Library​

Create new document library offers a Blank library, a copy of an existing library, or a template such as Media library, Invoices, Learning or Resume repository. Select Blank library:

The Create new document library window with Blank library outlined in red next to From existing library, and templates from Microsoft including Media library, Invoices, Learning and Resume repository

Step 3: Name It and Decide on Navigation​

Fill in Document Library settings:

SettingPayroll libraryWhy
NamePayrollExportsThe name becomes the web address, so leave out spaces. Rename it with spaces afterwards if you like
DescriptionMonthly overtime workbooks for payroll. Created by the Overtime Timesheet app.Tells people what the library is for
Show in site navigationClearedIt's for payroll only, so it stays out of the menu everyone sees

The Document Library settings window with Name PayrollExports, the description, and Show in site navigation cleared and outlined in red, with Back, Create and Cancel

Select Create.

Step 4: The New Library​

The library opens, empty, at https://<your-organization>.sharepoint.com/sites/OvertimeTimesheet/PayrollExports:

The new PayrollExports library with Add shortcut to OneDrive, Forms, Edit in grid view, Pin to Quick access, Workflows, Integrate and Create or upload, the All Documents view with Name, Modified and Modified By columns, and the message Your files will show up here

A New: Collect Files with Forms tip may pop up the first time; select Got it to close it.

Its address ends in /PayrollExports, with no %20 where a space would be. To give it a friendlier name without changing that address, see How to Rename a SharePoint Library Without Changing Its URL.

Common Mistakes​

MistakeWhat happensDo this instead
Naming it with spacesThe web address gets %20 for each spaceName it without spaces, then rename it
Keeping files for one team in the site's DocumentsThey share Documents' permissionsGive them a library of their own
Leaving a restricted library in the navigationEveryone sees a link to itClear Show in site navigation

Troubleshooting​

SymptomLikely causeFix
No Document library in the + New menuYou may not have permission to create libraries on this siteAsk a site owner to create it
The library isn't in the site's menuShow in site navigation was clearedOpen it from Site contents

FAQ​

Library or list?​

A library holds files, each with optional columns of information. A list holds rows of data with no file. Monthly workbooks are files, so they belong in a library.

Who can open the new library?​

Everyone who can open the site, until you change its permissions. The Overtime Timesheet series gives the payroll library its own permissions in Part 3, using How to Restrict a SharePoint Document Library to One Group.

Conclusion​

+ New → Document library → Blank library → a name without spaces, a description, and Show in site navigation as you need it → Create.

Additional Resources​