SPFX Webpart (react JS) not visible to users with read permission on the site

Occasional Contributor



I have created a SPFX webpart using React.JS, it's working fine but users with read permissions on the site are not able to view the webpart on the page.

As soon as I change the user permission from read to edit or higher permission then its visible to the user.

The page is published.

Any suggestion


2 Replies
best response confirmed by Tarundeep Singh (Occasional Contributor)

To me this sounds like you have some logic in your WebPart that requires the user to have more than Read-only permissions. This probably results in an exception ultimately causing the WebPart not being rendered.

Hi @Paul Pascha,


Yes, you are correct. I am fetching the list of sub sites and then looking for a specific sub site and then in the sub sites querying the site pages. 

I think this is the issue.


Thanks for helping me out. 

Cheers :)