SOLVED

Display different home pages

%3CLINGO-SUB%20id%3D%22lingo-sub-859882%22%20slang%3D%22en-US%22%3EDisplay%20different%20home%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-859882%22%20slang%3D%22en-US%22%3E%3CP%3EOn%20a%20SharePoint%20modern%20site%2C%20is%20there%20a%20way%20to%20display%20a%20different%20site%20page%20for%20the%20home%20page%20based%20on%20the%20user's%20group%20they%20are%20in%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-859882%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehome%20page%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESite%20Pages%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-867262%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20different%20home%20pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-867262%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F288947%22%20target%3D%22_blank%22%3E%40smithme%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20think%20there's%20a%20way%20to%20do%26nbsp%3B%3CEM%3Eexactly%3C%2FEM%3E%20what%20you're%20looking%20for%20in%20SharePoint%20Online%20at%20least.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20a%20few%20solutions%20that%20might%20get%20you%20to%20the%20same%20end%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Create%20an%20SPFx%20application%20customizer%20to%20run%20a%20JavaScript%20redirect%20on%20the%20homepage.%20This%20would%20check%20the%20logged%20in%20user's%20properties%20and%20be%20able%20to%20redirect%20them%20on%20page%20load.%20This%20would%20probably%20be%20slow%20enough%20for%20users%20to%20notice%20additional%20load%20time%20though.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Depending%20on%20what%20you've%20got%20going%20on%20on%20the%20home%20page%2C%20you%20might%20be%20able%20to%20get%20different%20content%20to%20show%20up%20for%20different%20users%20through%20a%20combination%20of%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Ftarget-files-news-and-pages-to-specific-audiences-33d84cb6-14ed-4e53-a426-74c38ea32293%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eaudience%20targeting%3C%2FA%3E%26nbsp%3Band%20custom%20SPFx%20web%20parts%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

On a SharePoint modern site, is there a way to display a different site page for the home page based on the user's group they are in?

1 Reply
Highlighted
Solution

@smithme 

 

I don't think there's a way to do exactly what you're looking for in SharePoint Online at least.

 

There are a few solutions that might get you to the same end

 

1. Create an SPFx application customizer to run a JavaScript redirect on the homepage. This would check the logged in user's properties and be able to redirect them on page load. This would probably be slow enough for users to notice additional load time though.

 

2. Depending on what you've got going on on the home page, you might be able to get different content to show up for different users through a combination of audience targeting and custom SPFx web parts