Forum Discussion
david.calabro
Apr 13, 2017Brass Contributor
PnP Provisioning - Support for target audience in web part?
Does PnP support specifying the target audience when deploying webparts on a page?
- Deleted
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
- Deleted
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.