How to programmatically set Target Audience in SharePoint 2013 Wepbart using javascript RRS feed

  • Question

  • I would like to use 1 SharePoint webpart  for over 20 different departments to view filtered data based on their department.

    I would like to programmatically/dynamically change the target audience on the webpart, using javascript/jsom within the content script editor on the webpart based on the current user and the user's sharePoint security group.  Visual studio solutions (sandbox or farm) are not allowed within the environment.  Additionally apps are not allowed in environment.

    Deirdre c thompson

    Wednesday, September 11, 2019 11:14 AM

All replies