Home

Hide SharePoint libraries in OneDrive for business

%3CLINGO-SUB%20id%3D%22lingo-sub-1166121%22%20slang%3D%22en-US%22%3EHide%20SharePoint%20libraries%20in%20OneDrive%20for%20business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1166121%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20some%20critical%20confidential%20documents%20in%20one%20document%20library%20which%20normal%20user%20should%20not%20able%20to%20see.%20To%20achieve%20this%20i%20have%20hide%20this%20document%20library%20in%20SharePoint%20so%20normal%20user%20are%20not%20able%20to%20see%20this%20library%20under%20site%20contents.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20in%20when%20i%20opened%20the%20%3CSTRONG%3EOneDrive%20app%20in%20browser%2C%3C%2FSTRONG%3E%20under%20%22Shared%20Libraries%22%20tab%2C%20i%20see%20my%20SharePoint%20site%20and%20when%20i%20clicked%20on%20that%20site%2C%20i%20can%20see%20all%20document%20libraries%20included%20hidden%20library%20also.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20when%20i%20open%20%3CSTRONG%3EOneDrive%20app%20in%20mobile%3C%2FSTRONG%3E%20and%20go%20to%20%22Shared%20Libraries%22%20tab%2C%20i%20don't%20see%20that%20hidden%20document%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20that%20hidden%20document%20library%20either%20in%20%3CSTRONG%3EOneDrive%20browser%20app%3C%2FSTRONG%3E%20or%20in%20%3CSTRONG%3EOneDrive%20app%20in%20mobile%3C%2FSTRONG%3E%20should%20not%20be%20display.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20hide%20document%20library%20using%20below%20PnP%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESet-PnPList%20-Identity%20%24ListName%20-Hidden%20%24True%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1166121%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1166213%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20SharePoint%20libraries%20in%20OneDrive%20for%20business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1166213%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20about%20just%20creating%20a%20separate%20private%20team%20site%20for%20this%20contents%20and%20only%20adding%20members%20who%20should%20have%20access%2C%20that%20way%20no%20one%20else%20will%20have%20any%20visibility%20and%20will%20not%20see%20the%20document%20library.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1167369%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%20SharePoint%20libraries%20in%20OneDrive%20for%20business%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1167369%22%20slang%3D%22en-US%22%3ECian%20suggestion%20is%20worth%20to%20try%20because%20you%20are%20not%20going%20to%20be%20able%20to%20customize%20ODFB%3C%2FLINGO-BODY%3E
Highlighted
Senior Member

We have some critical confidential documents in one document library which normal user should not able to see. To achieve this i have hide this document library in SharePoint so normal user are not able to see this library under site contents.

 

But in when i opened the OneDrive app in browser, under "Shared Libraries" tab, i see my SharePoint site and when i clicked on that site, i can see all document libraries included hidden library also.

 

But when i open OneDrive app in mobile and go to "Shared Libraries" tab, i don't see that hidden document library.

 

I think that hidden document library either in OneDrive browser app or in OneDrive app in mobile should not be display.

 

I have hide document library using below PnP command.

 

Set-PnPList -Identity $ListName -Hidden $True

2 Replies
Highlighted

How about just creating a separate private team site for this contents and only adding members who should have access, that way no one else will have any visibility and will not see the document library.

Highlighted
Cian suggestion is worth to try because you are not going to be able to customize ODFB