External Users Cannot See Custom WebParts Without CDN

Rodrigo Meira 0 Reputation points
2025-02-26T09:21:50.85+00:00

Hello,

We have developed custom WebParts in our SharePoint environment, but external users are unable to see them. We want to avoid using a CDN to grant them access to the assets.

Could you provide guidance on how to properly configure permissions or any alternative approach that would allow external users to view the WebParts without relying on a CDN?

Thank you for your support.

Best regards.

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.
3,367 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 39,281 Reputation points Microsoft Vendor
    2025-02-27T01:39:40.0166667+00:00

    Hi @Rodrigo Meira,

    You have to permissions to All Users(membership) on app catalog site where your SPFx solution is deployed.

    Follow below steps:

    1. Turn ON external sharing for your M365 tenant.
    2. Download & open SharePoint Online Management Shell and run below commands using administrator account:DockerfileCopy
            Connect-SPOService -Url https://<tenant>-admin.sharepoint.com
            Set-SPOTenant -ShowAllUsersClaim $true
      
    3. Grant "Read" permissions to All Users(membership) group on App Catalog (https://<tenant>-admin.sharepoint.com/sites/AppCatalogSite/_layouts/user.aspx) or on "Client Side Assets" library (https://<tenant>-admin.sharepoint.com/sites/AppCatalogSite/ClientSideAssets/AllItems.aspx) in App Catalog site as shown below: enter image description here

    Reference: SPFx web part error for few users : Failed to load component


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.