I have the native elasticsearch connector configured with SharePoint Online. All the permissions are configured correctly as per the documentation and when I trigger the sync, the sync works well for documents, but it fails when it tries to access any SP list with following error:
PermissionsMissing: Received Unauthorized response for <SP Online URL>/_api/lists/GetByTitle('Listname')/items(1)?$expand=AttachmentFiles. Verify that the correct Graph API and Sharepoint permissions are granted to the app and admin consent is given. If the permissions and consent are correct, wait for several minutes and try again.
Now, I have also configured exclusion filter to not sync lists and list items, but somehow the error still prevails. Below is my sync rules to exclude the list item, lists etec.
How to proceed with this? Is there any way to exclude the list items and attachments etc