Configuring OneDrive Connector
You can easily archive, index, export, and view data in OneDrive using NetGovern. This includes O365 email attachments sent as modern attachments and stored on OneDrive.
To index and archive data in OneDrive, you must configure the connector and create a Live Location in the NetGovern Admin UI. When configured, you must perform User Mapping. Next, indexing and archiving jobs must be set up in order to crawl and archive the data in OneDrive. The Live Location and content can then be included in NetGovern .
When you have created the location and configured the connector, you must ensure that all users are mapped. For more information—see User Mapping. For detailed steps—see Configuring User Mapping
Once configured, an indexing or archiving job must be created in order to process the content. An Index job must be set up in order to make the data searchable—see Configuring File Indexing. Indexing must be performed prior to archiving if you intend to search the archived data—see Configuring File Archiving.
First, you must integrate NetGovern with Office 365. Register the Crawler application with the Microsoft Identity Platform and grant the permissions required. Once you have completed the prerequisites for configuring the OneDrive connector, you can create the Live Location in the NetGovern Admin UI.

- To register the Crawler application, enter the following URL in a web browser:
https://login.microsoftonline.com/common/adminconsent?client_id=7043314c-b98b-49ae-ba5c-8c21415bc8ed&state=12345&redirect_uri=https://localhost:65010/crawler
- Log into Office 365 with you Global Administrator Account.
- Grant permissions to the application. Click Accept.
-
You will be redirected to the following URL, which indicates successful registration
:
https://localhost:65010/crawler?admin_consent=True&tenant=67b87f80-447a-4c91-b8e0-ef0387932778&state=12345
The page will not resolve and can be closed.

You must have completed the prerequisites for configuring the OneDrive connector in NetGovern. You can contact your Support Representative for further details on the connector features, system requirements, and pre-configuration process.
Perform the following steps in the NetGovern Admin UI. Administrator rights are required.
For Microsoft OneDrive, you will need your Office 365 Tenant ID. The tenant ID is located in the Directory ID box.
- Log into the NetGovern Admin UI.
- Select Archiving.
- Open the Connectors tab.
- Navigate to the Locations section. Click Add.
- Click on Live Locations to expand, select Document Store.
- Click Next.
- Select OneDrive as the Source Type.
- Click Next.
- The Document Store Location window displays.
- In the Name field, enter a name that is meaningful to the users and reviewers who will be accessing the data. Include the term "Connector" in the name entered.
-
IMPORTANT
To change a location name, a new location must be created and its data must be reindexed. - In the Description field, enter a relevant description.
- Enter the Office 365 Tenant ID that you want to index.
-
NOTE
Your O365 Tenant ID is located in the Directory ID box. - (Optional) Enable Dual-Login protection to ensure that access to this location in a NetGovern Search will require the authorization of a second manager or Administrator.
- (Optional) Enable Distribute accounts across all crawler nodes. This is checked by default for a better balancing of the indexing workload.
- (Optional) Enter the User Group. The User Group setting allows you to carve out a subset of account members from the configured AD group.
-
IMPORTANT
Once the data is indexed, it will not be possible to exclude content from certain AD users. If you want to control which users' data is indexed you can create user sub groups. A separate index location must be created for each group. - (Optional) Click Test to verify the connection.
- Click Save.
- Click Save at the bottom-left of the Connectors tab.
When you have created the location and configured the connector, you must ensure that all users are mapped. For more information—see User Mapping. For detailed steps—see Configuring User Mapping
Once configured, an indexing or archiving job must be created in order to process the content. An Index job must be set up in order to make the data searchable—see Configuring File Indexing. Indexing must be performed prior to archiving if you intend to search the archived data—see Configuring File Archiving.