I am trying to show SharePoint list items from a different site collection in a SharePoint adaptive card extension using Graph API. This is working as expected for any user who has access to the SharePoint list.
Do we have any options to show the SharePoint list items in spfx who doesn't have access to the list.
When checked, I could see to use GraphAPI from SharePoint, there is a default app registered in Azure under the name "SharePoint Online Client Extensibility Web Application Principal". The App has delegated permission for Sites.ReadAll and Sites.ReadWriteAll as shown below:
So along with this I tried to add Sites.ReadAll with application permission as shown below:
But this doesn't made any change and the list of items were not visible for any users without access to the list.
Please let me know if we have any option to show the SharePoint list items in an SPFx app without giving the end user read access to the list.