question

LalitKumarMishra-3028 avatar image
0 Votes"
LalitKumarMishra-3028 asked MichaelHan-MSFT commented

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

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://docs.microsoft.com/en-us/sharepoint/use-app-catalog


office-sharepoint-onlinesharepoint-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered LalitKumarMishra-3028 commented

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://docs.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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MichaelHan-MSFT,


Thanks for the info, I know this solution but only applicable to non-isolated SPFX solutions only.

Here, I am talking about isolated SPFx solutions and how can we deploy to selected sites only?

0 Votes 0 ·
MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MichaelHan-MSFT commented

Hi @LalitKumarMishra-3028 ,

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @MichaelHan-MSFT,

I also have the same understanding but wanted to confirm this from the SharePoint Online community. Nothing we can find in the MS docs, so can we consider this non-doable via any medium (UI, PowerShell. PNP etc.)?

0 Votes 0 ·

Hi @LalitKumarMishra-3028 ,
Yes, you are right. it's non-doable via any medium.

0 Votes 0 ·