In this article, we will learn how to enable site collection app catalog. By enabling the site collection level app catalog (not the tenant), we can deploy/install SharePoint AddIn/SPFx solutions at the site collection level. Consider this like sandbox solution, as a component is only deployed and is installed on the site collection and not available for other site collections.
Why do we need a Site Collection App Catalog?
There are times and cases when we, as a developer, have to build a solution which is very much specific to a particular project or application. This solution demands a very determined approach to solving a specific problem which is not required for other site collections of your tenant. Below are some of the reasons why we need a site collection app catalog.
Notes
This is a one-time activity to be done by tenant admins.
open SharePoint Online Management Shell.
Connect to the Tenant.
# get a reference to the site collection where the
# site collection app catalog should be created
Once you go to the site collection, you will see the app for SharePoint library which can be used to deploy the app.
Source : https://www.c-sharpcorner.com/article/enable-site-collection-app-catalog-for-particular-site-collection-level-solution/
Why do we need a Site Collection App Catalog?
There are times and cases when we, as a developer, have to build a solution which is very much specific to a particular project or application. This solution demands a very determined approach to solving a specific problem which is not required for other site collections of your tenant. Below are some of the reasons why we need a site collection app catalog.
- Provide isolated and focused solution/web part for a particular project.
- Tenant level App/Add-in is visible to all site collection under a tenant. Risk of installing the app in other site collections is nullified for which solution is not required.
- Provides controls to Site collection admins to manage solutions specific on site collection.
- No need to provide access to site collection admins to deploy the app on the tenant.
- Saves times and faster deployment methodology.
- How to enable site collection app catalog?
Notes
This is a one-time activity to be done by tenant admins.
open SharePoint Online Management Shell.
Connect to the Tenant.
Connect-SPOService -Url https://wayneenterprise-admin.sharepoint.com -credential bruce@wayneenterprise.comConnect to the particular site and run Add-SPOSiteCollectionAppCatalog.
# get a reference to the site collection where the
# site collection app catalog should be created
$site = Get-SPOSite https://wayneenterprise.sharepoint.com/sites/justiceleague# create site collection app catalog
Add-SPOSiteCollectionAppCatalog -Site $site
Once you go to the site collection, you will see the app for SharePoint library which can be used to deploy the app.
Source : https://www.c-sharpcorner.com/article/enable-site-collection-app-catalog-for-particular-site-collection-level-solution/