Forum Discussion

david.calabro's avatar
david.calabro
Brass Contributor
Apr 13, 2017

PnP Provisioning - Support for target audience in web part?

Does PnP support specifying the target audience when deploying webparts on a page?

  • Hi David,

     

    good question have not seen it yet maybe you can add it to the issue list of PNP if you need it.

     

    Kr,

     

    Paul

  • I don't think it does. PnP uses the export of a webpart to import it. Webpart export doesn't include audience targeting info. 

     

    Also the schema for wikipage webpart and webpartpage webpart don't support audiences. I have seen code examples in the past on setting audience targeting with CSOM, so you could build your own provider to set this property. 

Resources