Forum Discussion
Hot to apply Target Audience to SharePoint list views
Hi All,
Hot to apply Target Audience to SharePoint list views? Just like we are able to do for left navigation links so the same need to apply list views.
Thanks,
Harish Patil
5 Replies
- harishpatilBrass Contributor
Hi Pankaj and All,
Ok. We will try with SPFX. How to close or mark as answers
Thanks,
Harish Patil
Hi harishpatil
a list view have no options to show Target Audience activated item.
You can show Target Audience activated items in WebParts (News, Highlighted Content...) or in a modern Search WebPart.
Best, Dave
- PankajBadoniIron Contributor
Audience targeting isn’t available for SharePoint list views in the modern experience. Unlike navigation links, you can’t show or hide views based on user groups.
However, if you need to control who sees what, you can use item-level permissions. This lets you restrict access to specific list items, so only the right people can view or edit them, even if the view itself is shared.
-----------------------------------------------------------------------------
If this helped, please mark it as the answer!
- harishpatilBrass Contributor
Hi Pankaj and All,
But this is working on SharePoint 2013. This means it is working on SharePoint 2013 but not SharePoint Online.
Is here any way achieve this SPFX.
Thanks,
Harish Patil
- PankajBadoniIron Contributor
Hi Harish,
Audience targeting isn’t available for SharePoint Online list views in the modern experience.
Yes, you can implement it using SPFx (SharePoint Framework). Here's a sample from the GitHub PnP community that demonstrates how to use audience targeting in a React-based SPFx web part:
sp-dev-fx-webparts/samples/react-target-audience/README.md at main · pnp/sp-dev-fx-webparts · GitHub
-----------------------------------------------------------------------------
If this helped, please mark it as the answer!