Using the Sensitive Data Manager Agent version 11.8.2 or later provides support for SharePoint on premise and online Modern Authentication. This is a more secure way than using Basic Authentication. The following Microsoft guide provides guidance to setup the SharePoint app-only principal to use Modern Authentication with other technology integrations.
You will first need to grant access using SharePoint App-Only by following either the Microsoft documentation or by the following.
Navigate to your SharePoint site using the following URL to generate the required Client Id and Client Secret - https://contoso.sharepoint.com/_layouts/15/appregnew.aspx