SOLVED

PnP Provisioning - Support for target audience in PnP Site Provisioning Framework?

%3CLINGO-SUB%20id%3D%22lingo-sub-63970%22%20slang%3D%22en-US%22%3EPnP%20Provisioning%20-%20Support%20for%20target%20audience%20in%20PnP%20Site%20Provisioning%20Framework%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63970%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20been%20using%20the%20PnP%20Site%20provisioning%20code%20to%20update%20structural%20Navigation%20handlers%20and%20have%20noticed%20that%20the%20provisioning%20framework%20doesn't%20retrieve%20or%20allow%20Target%20Audience%20information%20from%20structural%20navigation%20nodes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWill%20support%20be%20added%20to%20provision%20target%20audiences%20for%20Navigation%20in%20the%20PnP%20site%20provisioning%20framework%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-63970%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64741%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20Provisioning%20-%20Support%20for%20target%20audience%20in%20PnP%20Site%20Provisioning%20Framework%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64741%22%20slang%3D%22en-US%22%3EWhat%20about%20when%20SP%20groups%20or%20AD%20groups%20are%20utilized%20in%20place%20of%20an%20actual%20audience%20group%20in%20navigation%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64180%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20Provisioning%20-%20Support%20for%20target%20audience%20in%20PnP%20Site%20Provisioning%20Framework%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64180%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3Eaudience%20configuration%20is%20unfortunately%20not%20exposed%20using%20remote%20APIs%20(CSOM%2FREST)%2C%20so%20we%20can't%20currently%20implement%20this%20with%20the%20PnP%20provisioning%20engine.%20Second%20consideration%20is%20that%20audiences%20are%20configurable%20in%20on-premises%2C%20but%20in%20SharePoint%20Online%2C%20they%20are%20compiled%20once%20in%20a%20week%2C%20which%20makes%20them%20pretty%20much%20unusable%20for%20the%20classic%20scenarios.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

We have been using the PnP Site provisioning code to update structural Navigation handlers and have noticed that the provisioning framework doesn't retrieve or allow Target Audience information from structural navigation nodes.

 

Will support be added to provision target audiences for Navigation in the PnP site provisioning framework?

2 Replies
best response confirmed by Steve Borgwardt (Occasional Contributor)
Solution

Hi,

audience configuration is unfortunately not exposed using remote APIs (CSOM/REST), so we can't currently implement this with the PnP provisioning engine. Second consideration is that audiences are configurable in on-premises, but in SharePoint Online, they are compiled once in a week, which makes them pretty much unusable for the classic scenarios.

What about when SP groups or AD groups are utilized in place of an actual audience group in navigation?