Forum Discussion

Jesse Murray's avatar
Jesse Murray
Copper Contributor
Mar 22, 2017

Web Property Bag and NoScript Sites

http://www.techmikael.com/2017/02/gaps-and-differences-between-group-365.html

 

"You cannot programmatically update the site property bag on a modern site, but in many cases you can work around this. This has traditionally been used to store site meta data."

 

Digging into the modern site experience it seems the previously available ability to manage custom scripting for self service sites has been removed entirely.  This has been the most common way to add metadata to the SPSite object for search purposes.

 

Is this on the roadmap to fix?  Has anyone found a way around the NoScript limitation on property bag editing?

2 Replies

  • Jonathan Cardy's avatar
    Jonathan Cardy
    Copper Contributor

    You can turn off NoScript, update the propertybag, and turn it back on! Here is now PnP does it: https://github.com/SharePoint/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/Extensions/TenantExtensions.cs

     

    (Search for DenyAddAndCustomizePages)

  • Anonymous's avatar
    Anonymous

    You could use sp editor extention in chrome for the time being but it is not a solution :-)


Resources