SOLVED

Modern Experience and Security Trimming

%3CLINGO-SUB%20id%3D%22lingo-sub-334329%22%20slang%3D%22en-US%22%3EModern%20Experience%20and%20Security%20Trimming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334329%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%20i'm%20working%20on%20a%20customer%20project%20where%20he%20needs%20to%20apply%20security%20trimming%20on%20links%20(to%20SP%20Addin%2C%20or%20other%20SP%20Contents)%20in%20the%20homepage.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20moment%2C%20from%20what%20I%20can%20see%2C%20neither%20Hero%20nor%20QuickLinks%20fit%20the%20requirement.%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%20on%20how%20to%20achieve%20the%20result%3F%20Do%20you%20know%20any%20SPFx%20ready%20Webpart%20that%20I%20can%20use%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELast%20option%20is%20to%20build%20a%20customizer-wp%20to%20hide%20objs%20in%20the%20page%2C%20but%20probably%20it%20will%20slow%20down%20performances.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%3CP%3EMichele%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-334329%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-334460%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Experience%20and%20Security%20Trimming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-334460%22%20slang%3D%22en-US%22%3E%3CP%3EHave%20a%20look%20at%20this%20solution%20in%20the%20PnP%20Repository%2C%20built%20by%20the%20Shire%20Team%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-solutions%2Ftree%2Fmaster%2Fsolutions%2FLinksAndHandlebarsTemplate%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-solutions%2Ftree%2Fmaster%2Fsolutions%2FLinksAndHandlebarsTemplate%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20allows%20you%20to%20store%20links%20in%20a%20list%20and%20it%20will%20pull%20them%20in!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-837376%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Experience%20and%20Security%20Trimming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-837376%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%26nbsp%3Bdo%20you%20know%20if%20this%20is%20security-trimmed%3F%20For%20example%2C%20if%20I%20have%20links%20in%20the%20list%20that%20go%20to%20different%20libraries%20on%20a%20site%2C%20will%20it%20only%20display%20the%20links%20to%20a%20user%20who%20access%20to%20those%20libraries%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-837424%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Experience%20and%20Security%20Trimming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-837424%22%20slang%3D%22en-US%22%3ENot%20automatic.%20You%20can%20permission%20from%20them%20using%20SharePoint%20list%20permissions%20though%2C%20as%20these%20items%20are%20stored%20in%20a%20list.%3C%2FLINGO-BODY%3E
Contributor

Hi all, i'm working on a customer project where he needs to apply security trimming on links (to SP Addin, or other SP Contents) in the homepage. 

 

At the moment, from what I can see, neither Hero nor QuickLinks fit the requirement. 

Any ideas on how to achieve the result? Do you know any SPFx ready Webpart that I can use?

 

Last option is to build a customizer-wp to hide objs in the page, but probably it will slow down performances.

 

Thanks, 

Michele

3 Replies
Best Response confirmed by Juan Carlos González Martín (MVP)
Solution

Have a look at this solution in the PnP Repository, built by the Shire Team

 

https://github.com/SharePoint/sp-dev-solutions/tree/master/solutions/LinksAndHandlebarsTemplate

 

This allows you to store links in a list and it will pull them in!

@Beau Cameron do you know if this is security-trimmed? For example, if I have links in the list that go to different libraries on a site, will it only display the links to a user who access to those libraries? 

Not automatic. You can permission from them using SharePoint list permissions though, as these items are stored in a list.