Customer is a leading Personal Data Privacy and Protection provider.
It enables organizations to discover and map all types of data from all enterprise data sources; automatically classify, correlate, and catalog identity & entity data into profiles; manage and protect enterprise data with advanced data intelligence; and automate data privacy and protection.
It identifies all PII across structured, unstructured, cloud & Big Data.
Customer requested to build a Connector app to integrate their platform with Microsoft OneDrive to scan the data for finding the PII information.
The Microsoft Graph API offers a single endpoint to provide access to rich, people-centric data and insights exposed as resources of Microsoft 365 services.
Microsoft OneDrive is a file hosting service and synchronization service operated by Microsoft as part of its web version of Office.
Sacumen developed the Connector app to integrate Microsoft OneDrive using C# 8.0 (.NET Core 3.0). The Connector app performs the following actions:
Set up the prerequisites
O365 Account with Admin privileges
Registered app which will give the client id & client secret
Grant the required permissions (File.Read.All, File.ReadWrite.All, Site.Read.All and Site.ReadWrite.All)
Requests for access token by using OAuth 2.0 client credentials grant flow which uses the tenant id, client id and the client secret.
Retrieves the one drive files using the Microsoft Graph OneDrive API and the access token.
Downloads all the files at a specific location.
Samples the fetched data using predefined sampling techniques.
Formats the data and pass it to the customer.