One of the few hidden gems of SharePoint Online hosting model is Site Collection App Catalog. Yes, you read it right, Site Collection App catalog !!!, not Tenant App catalog. Don’t confuse this with delegating app catalog rights to Site Collection Administrators. This is different and the requirement is to have the app deployed and scoped to a Site Collection only. For more details about deployment options, please check here
So what does it mean by Site Collection App catalog ? Site Collection App catalog, as the name rightly implies, is an App catalog scoped for a site collection. In other words, it elevates a Site Collection to allow hosting Apps and create a App Catalog in the Site Collection.
The Site Collection App Catalog could be enabled using the following script.
- Deploy apps to the Site Collection scope only. Even if tenant app setting is On in web part, the Tenant Apps are deployed to site collection scope only
- Apps can only be added in the installed site collection and thus decreasing risk of accidental installation at other locations
- Allow Site Collection Administrators to manage deployments
- There is support for SharePoint Add Ins
- When included in the package, the assets are deployed and maintain in the site collection only
- Distributed release cycle management could allow better functionality for upgrades
- Lack of tracking Site Collections where the Site Collection App catalog feature is On
- Removal of Site Collection App catalog still leaves the App catalog library but apps cannot be installed
- No technical restrictions to prevent the web parts from accessing other site collections
In the above blog we saw how to use Site Collection App Catalog for deploying web parts in the restricted scope of Site Collection.