SOLVED

SharePoint doc library permissions

%3CLINGO-SUB%20id%3D%22lingo-sub-1393181%22%20slang%3D%22en-US%22%3ESharePoint%20doc%20library%20permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1393181%22%20slang%3D%22en-US%22%3E%3CP%3EI%E2%80%99ve%20got%20a%20library%20on%20a%20comms%20site%20(also%20a%20hubsite)%20that%20I%20need%20to%20permission%20uniquely%20for%20a%20smaller%20group%20of%20users.%20I%E2%80%99ve%20broken%20the%20inheritance%20and%20linked%20the%20library%20direct%20to%20an%20office%20365%20security%20group%20as%20I%20would%20do%20normally.%3C%2FP%3E%3CP%3EBut%20when%20I%20open%20the%20hubsite%20with%20my%20test%20account%20(which%20is%20not%20in%20the%20associated%20O365%20group%20-%20only%20the%20site%20group)%20I%20can%20still%20see%20the%20library%20link%20on%20the%20hub%20homepage%20and%20click%20into%20the%20library%20-%20I%20just%20don%E2%80%99t%20see%20the%20documents%20themselves.%20This%20is%20surprising%20-%20I%20would%20not%20expect%20to%20see%20the%20library%20link%20at%20all%20or%20be%20able%20to%20open%20it%2C%20since%20I%E2%80%99m%20not%20in%20the%20o365%20group.%20ie%20I%20have%20rights%20to%20the%20site%20but%20not%20the%20library.%26nbsp%3B%3C%2FP%3E%3CP%3EI%E2%80%99d%20rather%20hide%20this%20library%20(and%20preferably%20the%20link%20too)%20from%20a%20regular%20user.%20It%E2%80%99s%20got%20permission%20info%20and%20most%20users%20don%E2%80%99t%20need%20to%20know%20it%E2%80%99s%20there.%20Also%20it%20may%20confuse%20users%20if%20they%20open%20a%20doc%20library%20which%20doesn't%20appear%20to%20have%20any%20docs%20in%20it.%3CBR%20%2F%3EI'd%20be%20most%20grateful%20if%20anyone%20could%20shed%20any%20light%20in%20this.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1393181%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395365%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20doc%20library%20permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395365%22%20slang%3D%22en-US%22%3EUnfortunately%2C%20a%20link%20or%20web%20part%20added%20by%20a%20human%20is%20not%20currently%20able%20to%20be%20targeted%20or%20security%20trimmed%20-%20but%20the%20content%20is%2C%20as%20you%20know.%20You%20may%20want%20to%20try%20adding%20the%20link%20to%20the%20secure%20library%20to%20navigation%20instead%20of%20on%20the%20page.%20When%20audience%20targeting%20for%20navigation%20is%20added%20to%20your%20tenant%2C%20you%20can%20target%20the%20link%20in%20nav%20so%20it%20only%20shows%20to%20the%20people%20who%20have%20access.%20You%20can%20%E2%80%9Cfake%E2%80%9D%20that%20today%20by%20adding%20the%20library%20link%20to%20navigation%20and%20then%20using%20the%20lock%20%3Alocked%3A%20emoji%20and%20the%20words%20(restricted)%20or%20(private)%20to%20indicate%20that%20the%20link%20will%20not%20work%20for%20all%20visitors.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1406121%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20doc%20library%20permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1406121%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F38%22%20target%3D%22_blank%22%3E%40Susan%20Hanley%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Susan%2C%20thanks%20for%20your%20help.%20It%20was%20to%20do%20with%20site%20permissions%20in%20the%20end.%20Posting%20for%20reference.%3C%2FP%3E%3CP%3EMy%20test%20account%20had%20picked%20up%20some%20hidden%20limited%20permissions.%20Once%20I%20removed%20them%20I%20could%20no%20long%20see%20the%20doc%20library%20link%20or%20open%20it.%20Perfect!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1406372%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20doc%20library%20permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1406372%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F188373%22%20target%3D%22_blank%22%3E%40Victoria%20Symons%3C%2FA%3E%26nbsp%3B%2C%20I%20guess%20you%20were%20referring%20to%20the%20site%20menu%20(quick%20launch)%20and%20not%20the%20hub%20menu.%20When%20you%20create%20a%20document%20library%2C%20you%20can%20have%20the%20library%20link%20appeared%20into%20the%20quick%20launch%20that%20will%20be%20just%20under%20the%20hub%20menu%20for%20a%20communication%20site%20acting%20as%20a%20hub.%20The%20quick%20launch%20is%20security%20trimmed%20but%20not%20the%20hub%20menu%20if%20I'm%20not%20mistaken.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I’ve got a library on a comms site (also a hubsite) that I need to permission uniquely for a smaller group of users. I’ve broken the inheritance and linked the library direct to an office 365 security group as I would do normally.

But when I open the hubsite with my test account (which is not in the associated O365 group - only the site group) I can still see the library link on the hub homepage and click into the library - I just don’t see the documents themselves. This is surprising - I would not expect to see the library link at all or be able to open it, since I’m not in the o365 group. ie I have rights to the site but not the library. 

I’d rather hide this library (and preferably the link too) from a regular user. It’s got permission info and most users don’t need to know it’s there. Also it may confuse users if they open a doc library which doesn't appear to have any docs in it.
I'd be most grateful if anyone could shed any light in this. Thanks

3 Replies
Highlighted
Unfortunately, a link or web part added by a human is not currently able to be targeted or security trimmed - but the content is, as you know. You may want to try adding the link to the secure library to navigation instead of on the page. When audience targeting for navigation is added to your tenant, you can target the link in nav so it only shows to the people who have access. You can “fake” that today by adding the library link to navigation and then using the lock :locked: emoji and the words (restricted) or (private) to indicate that the link will not work for all visitors.
Highlighted
Best Response confirmed by Victoria Symons (Occasional Contributor)
Solution

@Susan Hanley 

Hi Susan, thanks for your help. It was to do with site permissions in the end. Posting for reference.

My test account had picked up some hidden limited permissions. Once I removed them I could no long see the doc library link or open it. Perfect!

 

Highlighted

@Victoria Symons , I guess you were referring to the site menu (quick launch) and not the hub menu. When you create a document library, you can have the library link appeared into the quick launch that will be just under the hub menu for a communication site acting as a hub. The quick launch is security trimmed but not the hub menu if I'm not mistaken.