Set up the Snowflake Connector for SharePoint¶
Note
The Snowflake Connector for SharePoint is subject to the Connector Terms.
This topic describes the steps to set up your Snowflake Connector for SharePoint.
Prerequisites¶
Before you begin installing and configuring the connector, you must do the following:
Ensure that you have a Microsoft Graph (https://learn.microsoft.com/en-us/graph/overview) application with the following permissions:
Sites.Selected (https://learn.microsoft.com/en-us/graph/permissions-reference#sitesselected): limits access only to specified sites.
Files.SelectedOperations.Selected (https://learn.microsoft.com/en-us/graph/permissions-reference#filesselectedoperationsselected): limits access only to files in specified sites.
GroupMember.Read.All (https://learn.microsoft.com/en-us/graph/permissions-reference#groupmemberreadall): used for resolving SharePoint group permissions.
Configure SharePoint to enable OAuth authentication as described in Get access without a user (https://learn.microsoft.com/en-us/graph/auth-v2-service?tabs=http#authentication-and-authorization-steps). The connector uses the following Microsoft Graph APIs to fetch data from SharePoint:
Download driveItem content (https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http)
driveItem: delta (https://learn.microsoft.com/en-us/graph/api/driveitem-delta?view=graph-rest-1.0&tabs=http)
List who has access to a file (https://learn.microsoft.com/en-us/graph/api/driveitem-list-permissions?view=graph-rest-1.0&tabs=http)
group: delta (https://learn.microsoft.com/en-us/graph/api/group-delta?view=graph-rest-1.0&tabs=http)
List group members (https://learn.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http)
Get the site URL of your Microsoft 365 SharePoint site with files or folders that you want to ingest into Snowflake and the credentials from your Azure or Office 365 account administrator.
Install the Snowflake Connector for SharePoint¶
Connectors are instances of Snowflake native applications. To install the Snowflake Connector for SharePoint, do the following:
Sign in to Snowflake as a user with the ACCOUNTADMIN role.
Navigate to Data Products » Marketplace.
Search for the Snowflake Connector for SharePoint and select Get.
In the dialog box, expand Options and enter the following information:
In Application name, enter a name for your connector application.
In Warehouse used for installation, select the warehouse that you want to use for installing the connector.
Note
This is not the same warehouse that is used by the connector to synchronize data from SharePoint. In a later step, you will create a separate warehouse for this purpose.
Select Get to begin the installation process. This can take a few minutes to complete.
After the connector is successfully installed, either select Configure to proceed with the configuration or select Done to close the dialog box and complete the installation.
Optional: Install multiple instances of Snowflake Connector for SharePoint¶
You can install multiple instances of the Snowflake Connector for SharePoint on your Snowflake account. To install an additional instance, do the following:
Navigate to Snowflake Marketplace and select Snowflake Connector for SharePoint. The application details page appears.
Click Add instance. The installation dialog appears.
Provide the instance name and select the warehouse to be used during the installation.
Select Get to begin the installation process.
Note
Adding connector instances can take several minutes. When the installation process completes, you get an email notification.
To avoid ingested data corruption, during connector configuration, always use a database schema that is different from all other native applications.
Configure the Snowflake Connector for SharePoint¶
Each connector application instance must be configured to communicate with its associated Sharepoint instance. After completing the installation process, proceed with the following steps.
Ensure that all the prerequisites are completed. For more information see Prerequisites.
If required, open the configuration wizard as follows:
Sign in to Snowsight as a user with the ACCOUNTADMIN role.
In the navigation menu, select Data Products » Apps.
Search for the Snowflake Connector for SharePoint and select it.
Configure¶
In the Configure step of the wizard, enter information in the following fields:
Note
By default, the fields are set to the names of objects created when you configure the connector. Snowflake recommends using new objects for these fields. However, if required, you can specify the names of existing objects, for example if reinstalling the connector.
Field
Description
Warehouse for Ingestion Data
Identifier for a new dedicated virtual warehouse for the connector. This warehouse is used for computing the data ingestion and document processing tasks.
Specify a name that is unique for your account. The name of the warehouse must be a valid object identifier.
Alternatively, you can select an existing warehouse.
Note
Do not specify the warehouse used during the initial creation of the connector.
Warehouse for Cortex Search:
Identifier for a new, dedicated Cortex search virtual warehouse. This warehouse is used to process and serve Cortex Search queries.
Specify a name that is unique for your account. The name of the warehouse must be a valid object identifier.
Note
Do not specify the same warehouse that you selected at the beginning of the connector installation. The configuration process creates a new X-Small warehouse with the specified name.
Role for Cortex Search
Identifier for a new custom role for the connector. Specify a name that is unique for your account. The name of the role must be a valid object identifier.
Users who have granted the role can use their account to query Cortex REST API about the data ingested by the application. By default, only the account that you used to install the connector has permission to query Cortex.
Click Configure to continue.
Authenticate and connect to Sharepoint¶
Important
Ensure that pop-ups are enabled in your browser.
In the Authentication step of the wizard, enter the following information and credentials to complete the OAuth2 authentication and connect to SharePoint.
Contact your Azure or Office 365 account administrator for this information.
Field
Description
SharePoint site URL
URL or Sharepoint site from which the connector will ingest content.
For top-level sites, use domain name only, for example,
sitename.sharepoint.com
. For sub-sites,use a domain name with the site path, for example,sitename.sharepoint.com/sites/SubSite
.Client ID
Enter your client ID. To learn about client ID and how to find it in Microsoft Entra, see Application ID (client ID) (https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application#application-id-client-id).
Client secret
Enter your client secret. To learn about a client secret and how to find it in Microsoft Entra, see Certificates & secrets (https://learn.microsoft.com/en-us/azure/healthcare-apis/register-application#certificates--secrets).
Tenant ID
Enter your tenant ID. To learn about tenant ID and how to find it in Microsoft Entra, see Find your Microsoft 365 tenant ID (https://learn.microsoft.com/en-us/sharepoint/find-your-office-365-tenant-id).
Click Next to begin the connection process, which can take several minutes to complete.
Validate source¶
In the Validate source step of the wizard, do the following:
Select the source from which you want to fetch the files:
Select All folders if you want to fetch files from all the folders that are accessible through the credentials you provided in Authenticate and connect to Sharepoint.
Select Specific folder if you want to fetch files from a specific folder that is accessible through the credentials you provided in Authenticate and connect to Sharepoint.
Note
This path is relative to the Shared Documents folder. For example, to ingest files from the folder
Shared%20Documents/user_manuals/cars
, enteruser_manuals/cars
.
Note
To change the fetch file source at a later time, you must reinstall the connector.
Click Validate to start the process of validating source, which can take several minutes.
After your connector is successfully configured, click Ingest files to begin data ingestion.
Next step¶
Once your connector is set up, continue on to Query the Cortex Search service with Snowflake Connector for SharePoint.