How to hide a list from site contents in SharePoint Online?
+
Hiding a list in SharePoint Online is crucial for managing visibility and reducing clutter for users. While the SharePoint Online UI or admin center lacks a direct option to hide lists, this can be accomplished using PowerShell.
Note: Even though we hide the list from a SharePoint site, users with permission to access the list can still view it if they have the URL.
Connect to the desired SharePoint Online site using the 'Connect-PnPOnline' cmdlet. Then, run the below cmdlet to hide a list or document library from the SharePoint site.
Set-PnPList -Identity <List_ID> -Hidden $True
Note: You can use the âGet-PnPListâ cmdlet to retrieve the list ID for all lists in the respective SharePoint site.
Run the below cmdlet in PowerShell to unhide a list or document library from the SharePoint site.
Set-PnPList -Identity <List_ID> -Hidden $False
Effortlessly optimize your SharePoint Online site management by hiding inactive lists!
- Utilize AdminDroid's inactive lists report to identify the important lists that are unused and hide them to maintain a clutter-free environment.
- Gain detailed insights on unused SharePoint lists, such as list name, inactive days, created date, last item modified/deleted date, site name, site address, and more.
Handy tip: Use the Schedule (â°) option to receive automated insights on inactive SharePoint lists on a daily, weekly, or monthly basis.