Sharepoint Connector issue - configuring api permissions

We are using elastic' sharepoint native connector but running into an issue where from organization policy perspective are only allowed to get permission to access only limited sites and not all.

Elastic sharepoint connector requires below permissions
Sites.read.all
Groups.all
User.Readbasic.all

But instead is it possible to make this connector work with sites.selected permissions only instead of all?

Hi Akshayd302,

Unfortunately for now we only work with Sites.Read.All permission. We've discussed within the team that we want to implement this feature eventually, but now it's not in our priority.

We're open to contributions, however, feel free to contribute a PR to our repository to fix this problem and it'll be available for native connectors in the release after PR is merged!