Hidden lists and libraries in SharePoint
A hidden list or library in SharePoint is one whose Hidden property is set to true. Microsoft's definition is: "If true, indicates that the list isn't normally visible in the SharePoint user experience." SharePoint creates some for its own use, such as the Preservation Hold library, and a list can also be hidden with PowerShell. To see them, list the site's lists with PnP PowerShell (Get-PnPList), Microsoft Graph (GET /sites/{site-id}/lists) or the SharePoint REST service, and read each list's Hidden value. To show one again, set Hidden back to false with Set-PnPList -Hidden $false.
Everything on this page applies to SharePoint Online (SharePoint in Microsoft 365).
People use "hide a list" for four different settings. Only the first is the Hidden property, and only the last decides who can open the list.
| What you want | Setting | What Microsoft says about it | Where it is set |
|---|---|---|---|
| Take the list out of the SharePoint interface | The list's Hidden property | "If true, indicates that the list isn't normally visible in the SharePoint user experience." | PowerShell or the REST service |
| Take it out of the site navigation | Quick Launch | "set whether the list shows on the Quick Launch bar" | List settings > List name, description and navigation |
| Keep its items out of search | Search setting | "Whether items appear in search results." | List settings > Advanced settings |
| Stop people opening it | Permissions | The list's permissions decide who can view or change it | Permission levels on the list or the site |
What the Hidden property does
Microsoft documents the property in its Microsoft Graph reference and in its SharePoint REST API reference for lists.
| Where | Property | Microsoft's description |
|---|---|---|
| Microsoft Graph, listInfo resource | hidden (Boolean) | "If true, indicates that the list isn't normally visible in the SharePoint user experience." |
| SharePoint REST reference, List properties | Hidden (Boolean, read and write) | "Gets or sets a Boolean value that specifies whether the list is hidden. If true, the server sets the OnQuickLaunch property to false." |
| SharePoint REST reference, List properties | OnQuickLaunch (Boolean, read and write) | "Gets or sets a value that specifies whether the list appears on the Quick Launch of the site. If true, the server sets the Hidden property to false." |
The two properties are tied together. Hiding a list takes it off the Quick Launch, and putting a list on the Quick Launch makes it visible again.
Hidden is a display setting. PnP PowerShell describes the cmdlet that sets it as "Updates list settings.", and the project's own script sample for it is titled "Hide SharePoint list from Site Contents". Who can open a list is still decided by its permissions.
Hidden and system-managed are different
Microsoft Graph has a second marker on a list, called system. Microsoft's description: "If present, indicates that the list is system-managed. Read-only." It explains the marker this way: "The system facet indicates that the object is managed by the system for its own operation. Most apps should ignore items that have a System facet."
| Marker | What it means | Can you change it |
|---|---|---|
hidden | The list isn't normally visible in the SharePoint user experience | Yes. The REST reference lists Hidden as read and write, and Set-PnPList has a -Hidden parameter |
system | SharePoint manages the list for its own operation | Microsoft marks it "Read-only." |
System lists and libraries Microsoft names
Microsoft's documentation names a few of the lists and libraries SharePoint keeps for itself. The commands further down show the full set on your own site.
| List or library | What Microsoft says |
|---|---|
| Preservation Hold library | "The Preservation Hold library is a hidden system location that isn't designed to be used interactively but instead, automatically stores files when this is needed for compliance reasons." It appears when it is first needed: "SharePoint and OneDrive create a Preservation Hold library if one doesn't exist for the site." |
| UserInfo list | "When a user or guest browses to a SharePoint site, their user information is cached in the UserInfo list." |
| TaxonomyHiddenList | Microsoft's troubleshooting article for Access databases linked to SharePoint says a linked table with this name "indicates that one or more of the tables that are linked to a SharePoint list reference (or used to reference) a hidden metadata column", for example an Enterprise Keywords column. |
List hidden lists with PnP PowerShell
This needs the PnP.PowerShell module. PnP PowerShell for SharePoint Online covers installing it, registering the Entra ID application it needs, and signing in.
- Connect to the site.
Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/projects" -Interactive -ClientId <client id>
- List the hidden lists and libraries with their addresses.
Get-PnPList -Includes Hidden |
Where-Object { $_.Hidden } |
Select-Object Title, Id, @{ n = "Url"; e = { $_.RootFolder.ServerRelativeUrl } }
- To see every list with its Hidden value next to it, drop the filter.
Get-PnPList -Includes Hidden | Select-Object Title, Hidden
PnP's documentation describes Get-PnPList with no parameters as "Returns all lists in the current web", and -Includes as the way "to retrieve additional properties of the list". The current web is the site you connected to, so connect to each site or subsite you want to check.
List hidden lists with Microsoft Graph
Microsoft Graph returns the same Hidden value in each list's list property. Microsoft gives the least privileged permission for these requests as Sites.Read.All.
- Get the site's ID from its address. Microsoft defines the two parts as "Site collection hostname (contoso.sharepoint.com)" and "Site path, relative to server hostname."
GET https://graph.microsoft.com/v1.0/sites/{hostname}:/{relative-path}
- Get the site's lists. Microsoft: "Get the collection of lists for a site." Each list in the response carries
"list": { "hidden": false, "template": "documentLibrary" }or the values for that list.
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists
- Add the system-managed lists. Microsoft: "Lists with the system facet are hidden by default. To list them, include
systemin your$selectstatement."
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists?$select=name,webUrl,list,system
In PowerShell the cmdlet is Get-MgSiteList, in the Microsoft.Graph.Sites module. Microsoft's example is:
Import-Module Microsoft.Graph.Sites
Get-MgSiteList -SiteId $siteId
Its -All parameter is described as "List all pages." and -Property as "Select properties to be returned", which is where system goes. To keep only the hidden lists:
Get-MgSiteList -SiteId $siteId -All -Property "name,webUrl,list,system" |
Where-Object { $_.List.Hidden } |
Select-Object Name, WebUrl
List hidden lists with the SharePoint REST service
Microsoft's REST API reference for lists names SharePoint Online among the products it applies to, and marks Hidden as returned with every list. A request for a site's lists, trimmed to the two columns you need with $select, looks like this:
GET https://{site_url}/_api/web/lists?$select=Title,Hidden
Microsoft describes $select as the option "to specify which fields to return for a given list, list item, or other SharePoint object represented by an entity set."
Hide or show a list
PnP PowerShell documents the parameter on Set-PnPList: "Hide the list from the SharePoint UI. Set to $true to hide, $false to show." The -Identity parameter takes "The ID, Title or Url of the list."
| Task | Command | PnP's description |
|---|---|---|
| Hide a list | Set-PnPList -Identity "Demo List" -Hidden $true | "Hides the list from the SharePoint UI." |
| Show a hidden list | Set-PnPList -Identity "Demo List" -Hidden $false | "Set to $true to hide, $false to show." |
| Create a list that starts hidden | New-PnPList -Title HiddenList -Template GenericList -Hidden | "Create a new custom list and hides it from the SharePoint UI" |
If a list only needs to leave the navigation, use the Quick Launch setting in List settings and leave Hidden alone. To keep its items out of search results, use Advanced settings; SharePoint search results missing covers that setting from the other side. To control who can open it, change its permissions.
What to leave alone
- The Preservation Hold library. Microsoft: "It's not supported to edit, delete, or move these automatically retained files yourself. Or, change or remove retention labels and sensitivity labels for these files." It adds: "Instead, use compliance tools, such as those supported by eDiscovery to access the content in these files." The Preservation Hold Library explains what it holds and who can open it.
- Anything Microsoft Graph marks as system. Microsoft's guidance is that "Most apps should ignore items that have a System facet." Read these lists when you need to; leave their settings and their Hidden value as SharePoint set them.
- The UserInfo list. Microsoft documents two ways to remove a person from it, and neither is editing the list. One is the site's people page, reached by adding
/_layouts/15/people.aspx?MembershipGroupId=0to the site address, then Actions > Delete Users from Site Collection. The other isRemove-SPOUser -Site https://fabrikam.sharepoint.com/sites/sc1 -LoginName jondoe@fabrikam.comin the SharePoint Online Management Shell. Microsoft's Site User ID Mismatch diagnostic also "will offer to remove the old ID"; SharePoint Online diagnostics lists it. - The Quick Launch setting on a list you hid on purpose. Turning it on sets Hidden back to false.
Hidden libraries and storage
A hidden library still holds files, and those files count toward the site's storage. The site's Storage Metrics page lists every library and list with its size, including the Preservation Hold Library on a site that has been under a retention policy, label or hold. See what is using your SharePoint storage has the steps and the direct address of that page.
If the Preservation Hold Library is the large one, replacing the Preservation Hold Library covers how Squirrel captures deleted and modified copies into your own Azure storage.
Frequently asked questions
What is a hidden list in SharePoint?
A list or library whose Hidden property is true. Microsoft's description is that the list isn't normally visible in the SharePoint user experience. SharePoint creates some for its own use, and a list can also be hidden with PowerShell.
How do I see hidden lists in SharePoint Online?
List the site's lists and read the Hidden value of each. With PnP PowerShell, connect to the site, run Get-PnPList with -Includes Hidden, and keep the rows where Hidden is true. Microsoft Graph returns the same value in each list's list property, and the SharePoint REST service returns it as Hidden.
Which PowerShell module shows hidden lists?
Get-PnPList and Set-PnPList are in the PnP.PowerShell module. Get-MgSiteList is in the Microsoft.Graph.Sites module.
How do I unhide a hidden SharePoint list?
Run Set-PnPList with the list's ID, title or URL as -Identity and -Hidden $false. PnP's description of the parameter is "Set to $true to hide, $false to show."
How do I hide a SharePoint list or library?
Run Set-PnPList -Identity "Demo List" -Hidden $true, which PnP describes as "Hides the list from the SharePoint UI." If you only want the list out of the navigation, use the Quick Launch setting in List settings.
Does hiding a list stop people opening it?
Hidden is a display setting. Who can open a list is decided by its permissions, so change those when access is the concern.
Is the Preservation Hold Library a hidden library?
Yes. Microsoft calls it "a hidden system location that isn't designed to be used interactively". Microsoft also states that it is not supported to edit, delete or move the files it retains.
Why are some lists missing from Microsoft Graph results?
Microsoft states that lists with the system facet are hidden by default, and that you include system in your $select statement to list them.
What is the difference between a hidden list and a system list?
Hidden means the list isn't normally visible in the SharePoint user experience, and the value can be changed. System is Microsoft Graph's marker for a list that SharePoint manages for its own operation, and Microsoft marks it read-only.
Related reading
- PnP PowerShell for SharePoint Online: install, connect and cmdlets - the module behind Get-PnPList and Set-PnPList.
- The Preservation Hold Library - the hidden library retention policies fill.
- See what is using your SharePoint storage - Storage Metrics, which lists hidden libraries with their sizes.
- SharePoint search results missing: causes and fixes - the list setting that keeps items out of search.
- SharePoint permission levels explained - the setting that decides who can open a list.
- How to create a SharePoint list - including whether a new list shows in site navigation.
- SharePoint site collection administrator: add, remove and find - the role that can open the Preservation Hold Library.
Mark Smith co-founded SmiKar Software in 2015 and has spent the past decade helping organisations solve Microsoft 365 data management challenges. He works with the SmiKar team to build solutions for SharePoint archiving, storage optimisation, governance and compliance, supporting customers from growing businesses through to Fortune 500 enterprises.
More about SmiKar


