Can isolated SPFx app\webpart be deployed to only selected site(s) after adding it to tenant level app catalog?

Lalit Kumar Mishra 1 Reputation point
2021-08-31T05:30:44.267+00:00

Hello Everyone,

We have 2 types of SPFx solutions, Isolated one (only deployable at tenant level) & Org level (deployable at tenant level as well as site collection level).

That means, we can't deploy any isolated web part at the site collection level. Therefore, have only tenant app catalog option to deploy it but doing so will make your app/webpart available across all site collections in your tenant and which is not acceptable in most of the scenarios or business cases.

So, my question is - Can we or we can't at all restrict deployment of an isolated app/webpart to only selected site collection(s)??

Because as the MS documentation here, we can do it for SharePoint Add-Ins for not for SPFx solutions...

https://learn.microsoft.com/en-us/sharepoint/use-app-catalog

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,810 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MichaelHan-MSFT 18,026 Reputation points
    2021-08-31T08:02:40.423+00:00

    Hi @LalitKumarMishra-30A28,

    As a workaround, you could use site collection app catalog to scope the deployment of SPFx to specific site. Please refer to this article for more:

    https://learn.microsoft.com/en-us/sharepoint/dev/general-development/site-collection-app-catalog


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. MichaelHan-MSFT 18,026 Reputation points
    2021-08-31T09:19:09.463+00:00

    Hi @Lalit Kumar Mishra ,

    You are right. Isolated SPFx web parts can only be installed into the tenant app catalog.

    As far as I know, if the SPFx app is installed in the tenant app catalog, it would be available to all sites. So I don't think we can restrict deployment of an isolated app to specific sites.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.