How to Set Up and Configure Your OneDrive Connector

All BA Insight connectors can be downloaded from the Upland Right Answers Portal under Knowledge > BA Insight > Product Downloads > Connectors. This connector is installed with the same generic steps as any BA Insight connector. You must satisfy the Prerequisites for your connector before installing. The configuration specifics are detailed below.

Installation Wizard

Download the OneDrive Connector V1.

Before extracting the MSI from the downloaded .zip file, select the downloaded .zip file, and check the "Unblock" box in file properties dialogue box.

  1. Follow the instructions in the opening screens of the wizard.
  2. Note where on the local machine the application is installed. Also note the path
  3. Click Next to proceed, until you reach the "Web Service Information" screen, shown below.
  4. DO NOTuse the provided, default Domain Service Account "NetworkService Local account used by the service control manager. Not recognized by the security subsystem, so you cannot specify its name in a call to the LookupAccountName function. Has minimum privileges on the local computer and acts as the computer on the network.."
    1. Enter a valid local user account with admin rights on the local machine in the formatdomain\username
    2. Enter the accountPassword.


  5. Click Next.
  6. When finished, the wizard closes and the connector is successfully installed.
  7. Configure the connector by adding it to your connector application: Connectivity Hub or Connector Framework, using the instructions provided in those help systems.
  8. Specific configuration information is provided in the following topics.

Connection Configuration Settings

Set the Connection

  1. After setting your generic information, click the Connect or Refresh Web Service link.
  2. Select the appropriate authentication mechanism:



  3. The page refreshes and displays additional settings.

    Username Authentication Settings


  4. In the User name field, enter the user with the appropriate permissions for crawling the configured site collection
    1. If AUTOFETCH is used (no mailbox filters are used or if a filter containing the wild mark (*) symbol is used):
      • Tenant admin permissions are required 
    2. If AUTOFETCH is not used (mailbox filters are added for each individual site collection):
      • Edit permissions are required for each site collection
  5. In the Password field, enter the user password first and the Application ID, separated by the semi-colon ";" sign. 

    Certificate Authentication settings


  6. In theCertificatefield, enter yourCertificatecommon name. 

    If you copy your certificate details, as shown in the Certificate console graphic below, your syntax will contain unnecessary spaces.

    You must ensure you enter your certificate information in syntax without spaces or your certificate will not work.

    CORRECT SYNTAXexample: "CN=Jeff Smith"
    INCORRECT SYNTAXexample: "CN = Jeff Smith"


  7. In the Password field, enter the Application ID.
    1. This is a GUID such as "c87a7836-a1da-455c-9171-836bf793c195".

Common Configuration Settings

  1. Disabled Security: Check to disable security. This results in no content be security-trimmed. 
  2. OneDrive admin uri. Refer to the graphic below for sample values.
    1. Enter the following value in the following order, as shown in the graphic below, one per line:
      1. Admin URL

         

Configure the Mailbox/Datastore Settings

Configure your mailboxes, or datastores, for the OneDrive v1.0 Connector, using the following steps.

If none of the filters have values, all site collections in your tenant are returned.

  • Site Collection Title Filter:
    • Use this field to filter site collections by title.
    • You can specify both inclusion and exclusion rules.
    • One set per line.
    • Use * at beginning or end for wildcards.
    • Use the pipe character to separate multiple entries (|)
  • Site Collection Url Filter:
    • Use this field to filter site collections by URL.
    • You can specify both inclusion and exclusion rules; one set per line.
    • Use *at end for wildcards.
    • Use the pipe character to separate multiple entries (|) 
    • Case-insensitive
  • Web Template Id Filter:
    • Use this field to filter site collections by.
    • Template IDs must not include the number:
      • SPS is accepted
      • SPS#1 is not accepted.
    • You can specify both inclusion and exclusion rules; one set per line.
    • Use *at end for wildcards.
    • Use the pipe character to separate multiple entries (|)
    • Case-insensitive

Content Configuration Settings

For a given content source Content Sources do the following: Receive data from the Source System via the Connection, Filter the data it receives, Provide the results to the Target, Define the specific search index that contains the content you wish to index (and later search)., you can apply additional filters to decide which list or item to crawl.

Use the following syntax for the filters:

  1. Separate filter items using a comma (,) and separate filters with a character pipe (|) character.
  2. Filters support trailing wildcards.
  3. To use a literal comma (,) or a pipe character (|), precede the character with a backslash (\,), or (\|), respectively.
  4. If any changes are made to this field, a full crawl is required to properly refresh the index.
  5. The records only option can be used to only return metadata for the items matching the condition specified.
    1. No file or binary content is retrieved for such items.


  6. By default, connector returns SharePoint sites as search result items.
  7. To exclude these entries from search results, disableSitecontent type using the content types filter.
  8. To property map well known groups from SharePoint (like Everyone except external users, All Authenticated Users, and Authenticated Users), use the following Group load script:

    Copy
    dim sysId as string = HOST.GetSystemId()

    If sysId = "true"HOST.SetAdId("NT AUTHORITY\Authenticated Users")
    End If
     
    If sysId = "windows"HOST.SetAdId("NT AUTHORITY\Authenticated Users")
    End If

    If sysId.startswith("spo-grid-all-users")
    HOST.SetAdId("NT AUTHORITY\Everyone")
    End If

Complete the information in the remaining tabs using the generic instructions here:

Extracting HTML Text and Metadata from Documents

Text extraction from your source system Your Source System is the repository where your data is stored (data to be indexed). This repository is managed by applications such as: - SharePoint O365 - SharePoint 2013/16/19 - Documentum - File Share - OpenText - Lotus Notes - etc. Your Source System repository can also be a database such as SQL or Oracle. is automatic starting with Connectivity Hub v3.0.

Extracted information includes:

  • Available text and metadata which can be mapped to metadata properties. 
  • HTML metadata tags from HTML pages.
  • Available HTML tags and links for use as metadata from HTML documents

Update the OneDrive Connection with the Certificate and Azure App Information

  1. Open your Connector Framework, such as Connectivity Hub.
  2. Click the Connections link from the top navigation.
  3. Select your SharePoint Online v2.0 connection Connection defines the how Connectivity Hub connects to your Source System (which contains your documents, graphics, etc.,). Your Connection includes identifying elements such as: URL of the BA Insight web service connector you are using, (File Share connector, SharePoint Online connector, etc.), Authentication mode, User Accounts and Credentials, Database information (for database connectors) from the drop-down menu.
  4. Navigate to the Certificate portion of the page.


  5. Enter the credentials (Login and Password) of your OneDrive connection:
  6. Login (required): Enter the Certificate Distinguished Name.
  7. Password (required): Enter the Azure Application ID.
    • Note: You can find the Azure Application ID when you access your Azure App in the registered applications from the Azure Portal:


Important: If you change the Azure Application permissions, you must recycle the OneDrive connector application pool in order for the permission change to take effect.
  1. Click Save.