Hide/show webparts as per sharepoint group in sharepoint online

%3CLINGO-SUB%20id%3D%22lingo-sub-1401890%22%20slang%3D%22en-US%22%3EHide%2Fshow%20webparts%20as%20per%20sharepoint%20group%20in%20sharepoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1401890%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20two%20webparts%20on%20may%20page%2C%20each%20webpart%20have%20different%20view%20of%20list%20library.%3C%2FP%3E%3CP%3EI%20want%20to%20hide%2Fshw%20webpart%20depend%20on%20security%20group%20of%20user%20connecting%20this%20page.%3C%2FP%3E%3CP%3Eso%20any%20time%20only%20one%20webpart%20is%20visible%20to%20user%20which%20having%20security%20group%20for%20webpart%20have%20show%20option%20and%20other%20webpart%20is%20hidden%2C%20this%20way%20I%20can%20show%20only%20one%20view%20to%20user%20which%20have%20user%20group%20specific%20data.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehow%20can%20I%20achieve%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1401890%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1402385%22%20slang%3D%22en-US%22%3ERe%3A%20Hide%2Fshow%20webparts%20as%20per%20sharepoint%20group%20in%20sharepoint%20online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1402385%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F608122%22%20target%3D%22_blank%22%3E%40rautchetan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%20that%20isn't%20functionality%20that%20currently%20can%20be%20targeted%20to%20an%20audience.%20Here%20is%20what%20can%3A-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%5B%23%24dp4%5D%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Foverview-of-audience-targeting-in-modern-sharepoint-sites-68113d1b-be99-4d4c-a61c-73b087f48a81%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Foverview-of-audience-targeting-in-modern-sharepoint-sites-68113d1b-be99-4d4c-a61c-73b087f48a81%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20probably%20the%20main%20user%20voice%20request%20for%20this%20feature%20on%20all%20modern%20webparts%20-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.uservoice.com%2Fforums%2F329214-sites-and-collaboration%2Fsuggestions%2F20101822-enable-audience-targeting-on-modern-page-web-parts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.uservoice.com%2Fforums%2F329214-sites-and-collaboration%2Fsuggestions%2F20101822-enable-audience-targeting-on-modern-page-web-parts%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I have two webparts on may page, each webpart have different view of list library.

I want to hide/shw webpart depend on security group of user connecting this page.

so any time only one webpart is visible to user which having security group for webpart have show option and other webpart is hidden, this way I can show only one view to user which have user group specific data.

 

how can I achieve this?

1 Reply
Highlighted

@rautchetan 

 

Unfortunately that isn't functionality that currently can be targeted to an audience. Here is what can:-

 

https://support.office.com/en-us/article/overview-of-audience-targeting-in-modern-sharepoint-sites-6...

 

Here is probably the main user voice request for this feature on all modern webparts -

 

https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/20101822-enable-a...