Share via

SharePoint Error

Anonymous
2024-02-12T13:44:36.4366667+00:00

Hi i have created a SharePoint page and added some custom html and css to it. It works fine for people inside my organization. I have shared with people outside my organization as guess but they can see the content i have in html and css. It shows error as the image attached. Can someone help ?

Microsoft 365 and Office | SharePoint | For business | Windows

Answer accepted by question author

RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
2024-02-14T08:39:23.64+00:00

Hi @Delcio Horacio, This is a permissions related issue for external users. External users should have Read permissions on the app catalog site where you have deployed SPFx solution. You have to grant 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:
  3.  Connect-SPOService -Url https://<tenant>-admin.sharepoint.com
  4.  Set-SPOTenant -ShowAllUsersClaim $true
  5.  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:

83533-431-2.png

Note: You need SharePoint tenant administrator and App catalog site collection administrator (SCA) permissions for running the commands. 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.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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