PnP Provisioning - Support for target audience in web part?

Brass Contributor

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

2 Replies

Hi David,


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





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.