Permission & Access Issues

Fix SPFx Web Part Cannot Be Accessed by Guest Users

Adam DavisAdam Davis Oct 29, 2026 870 views

Question details

External guest users are unable to access or view an SPFx web part due to component-loading errors or permission restrictions.

How to Fix SPFx Web Parts Not Accessible by Guest Users
Product
SharePoint
Device & OS
not provided
Scenario
A site owner or administrator is trying to share a page containing an SPFx web part with external guest users, but the component fails to load for them.
Observed behavior
The SPFx web part does not load for guest users, displaying component-loading errors, while internal users can view it without issues.
Before you start

Ensure you have SharePoint Administrator privileges to modify tenant claims settings and run SharePoint Online PowerShell commands.

Solution 1Recommended

Enable the Everyone Claim in SharePoint Tenant

Use the SharePoint Online Management Shell to adjust tenant claims settings, allowing external guests to access the web part via the Everyone claim.

By default, the Everyone claim might be disabled in your tenant, preventing external guests from properly resolving access to specific SPFx web part resources.

Enabling the Everyone claim instead of just All Users ensures that guest identities are processed correctly for shared components.

1
Open SharePoint Online Management Shell

Launch the SharePoint Online Management Shell application on your computer with Administrator privileges.

2
Connect to your SharePoint admin center

Type the command `Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com` and press Enter. Log in with your admin credentials.

3
Enable the Everyone claim

Run the command `Set-SPOTenant -ShowEveryoneClaim $true` to add the Everyone claim to the tenant, rather than limiting it strictly to internal directory memberships.

4
Verify access

Wait a few minutes for the tenant configuration changes to sync, then have a guest user refresh the SharePoint page to verify if the SPFx web part loads correctly.

Enable the Everyone Claim in SharePoint Tenant
Claim Settings: Using ShowEveryoneClaim is often more effective than ShowAllUsersClaim ($true), as the latter restricts access to strictly 'All Users (membership)' which excludes external guests.
Free Microsoft Office alternative

Need a Lightweight Alternative for Office Documents? Try WPS Office

While resolving SharePoint administration issues can require complex configurations and admin rights, collaborating on standard documents does not have to be difficult. WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office for your team's document, spreadsheet, and presentation needs.

Free and lightweight desktop and mobile applicationsSeamless format compatibility with Microsoft Word, Excel, and PowerPointEasy-to-use collaboration and sharing features without complex tenant administrationFamiliar user interface ensuring zero learning curve for new users
QA img-9

Frequently Asked Questions

Why does the SPFx web part load for internal users but not guests?

Internal users belong to the default tenant directory memberships and automatically have access to underlying tenant resources. Guest users rely on external sharing policies and specific claims like the 'Everyone' claim to access the underlying components, which might be disabled by default.

What is the difference between ShowAllUsersClaim and ShowEveryoneClaim?

The ShowAllUsersClaim command typically adds 'All Users (membership)', which only includes internal authenticated users in the directory. The ShowEveryoneClaim command adds 'Everyone', which broadens access to include external guest users who have been invited to the tenant.

Where can I find the SPFx component-loading error details?

You can view these details by pressing F12 in your browser to open the Developer Tools. Navigate to the Console or Network tab and look for red error messages related to failing scripts or 'Access Denied (403)' network requests when the SharePoint page loads.