question

scogordo-2057 avatar image
0 Votes"
scogordo-2057 asked JoyZ commented

SharePoint 2016: export a list of all content Targeted to a specific Audience within site

I have a Target Audience (eg: ContosoHRAud) that's used widely within a site. I need to provide a list of webparts and items and etc where ContosoHRAud is being applied. Any leads?
Thanks!
Scott

office-sharepoint-server-administrationoffice-sharepoint-server-developmentoffice-sharepoint-server-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
1 Vote"
JoyZ answered JoyZ commented

@scogordo-2057,

Loop through all items in all lists in the site, check if column(Target Audiences)value equals ContosoHRAud to find where ContosoHRAud is being applied in all items.

For web parts, iterate through all web parts in all pages in the site,check the web part property "AuthorizationFilter" values are equals ContosoHRAud to find where ContosoHRAud is being applied in all web parts.

More information for your reference:

https://www.c-sharpcorner.com/article/retrieve-webparts-from-page-using-csom-with-powershell-for-s/

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Julie, I'll give it a look.

0 Votes 0 ·

@scogordo-2057,

I’m checking how the things are going on about this issue. Whether the post helps you?

You can accept the post as answer if it helps.

Thank you for your understanding and support.

0 Votes 0 ·
sadomovalex avatar image
0 Votes"
sadomovalex answered

if you work with SP2016 on-prem you may use basic PowerShell for that. Here is example of script which lists all web parts and list items with audiences: SharePoint 2010: Programmatically find audience usage.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.