Certificate-based authentication provides a secure way to connect to SharePoint and supports both basic integration and permission sync functionality.Use certificate authentication when:
You need permission sync capabilities
You prefer certificate-based security over client secrets
Your organization requires certificate-based authentication
If you are not planning to enable permission sync, you only need basic permissions:
Click Microsoft Graph, then click on Application permissions.
Navigate to the “Sites” permission group.
Select the checkbox for Sites.Read.All.
Advanced: If you want to limit the sites this app has access to, select Sites.Selected. However, if you do this, you will need to add the App you are currently registering to each site you want to index.
Click Add permissions.
Finally, click Grant admin consent for <Organization name> and click Confirm.