> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clarifeye.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For how to do something in the Clarifeye app, use the pages under /guides: the Guides tab has step-by-step how-tos, the Overview tab explains each feature.
> The API and Back Office tabs document the REST API. Use them only for questions about the API or integrations.
> Interface labels are in bold, exactly as they appear in the app, which is in English.

# Connect Google Drive or SharePoint

> Connect a Google Drive or a SharePoint site to a knowledge store, choose the folders and files to import, and keep them in sync automatically every hour.

A connector imports documents from Google Drive or SharePoint into the store's Sources and keeps them up to date. See [Sources](https://docs.clarifeye.ai/guides/sources.md) for how connected sources fit in, and [SharePoint](https://docs.clarifeye.ai/guides/sharepoint.md) for SharePoint-specific setup and security.

You need the **Admin** or **Knowledge maintainer** permission in the knowledge store. See [User management](https://docs.clarifeye.ai/guides/user-management.md).

## Set up a connector

1. Open **Sources** in the store's sidebar, then the **Connectors** tab.
2. Click **Add a connector**.
3. In the window that opens, choose **Google Drive** or **SharePoint** and sign in with your account. The connector only sees what that account can see.
4. Choose the source: a drive (**Choose a drive**) for Google Drive, or a site (**Choose a site**) for SharePoint. Click **Continue**.
5. Tick the folders and files to import. Selecting a folder includes everything inside it, including files added to it later. For SharePoint, use the **Library** switcher above the file list to pick other document libraries of the site.
6. Optionally, click **File type filter** to import only some file types, or to leave some out.
7. Click **Review import**. Check how many files will be imported, then click **Start import**. For a large selection, confirm with **Import … files**.

The connector's card shows the import's progress. Imported documents appear in the store's list of documents and are processed like uploads.

> [!NOTE]
>
> Every imported document is processed, which uses your organization's credits. To import less, narrow the folders or file types before you start.

## What gets synced

* **Files**: the supported file types (see [Upload documents](https://docs.clarifeye.ai/guides/sources/upload.md#supported-files)), within your file type filter. Other files are skipped; the card shows how many with **… file(s) skipped**, and you can click it to see which.
* **When**: every hour. The card shows **Last sync** and **Next sync**. Click **Sync now** to sync straight away.
* **New and changed files** in the selection are imported or updated.
* **Removed files**: a file deleted or moved out of the selected folders, or one you remove from the selection, is [archived](https://docs.clarifeye.ai/guides/sources/archive.md) in the store at the next sync.
* **Metadata**: each document keeps its folder path, its folders as tags, and who created and last modified it.

## Folders and collections

New documents are filed into [collections](https://docs.clarifeye.ai/guides/sources/collections.md) from their folders:

1. If one of the file's folders has the same name as an existing collection, it goes into that collection (the deepest matching folder wins).
2. Otherwise, a collection named after the file's top-level folder is created, and the file goes into it.
3. Files at the root of the drive or library stay under **Not in a collection**.

A document you have moved to another collection stays there: later syncs don't move it back.

## Manage a connector

On the connector's card, click **Sync now** or open its menu (**Connector options**):

* **Edit selection**: change the folders, files or file type filter, then click **Review import** and **Start import** to apply it.
* **Rename**: give the connector a name, for example to tell two connectors on the same provider apart.
* **Reconnect**: sign in again, for example when the card shows an error.
* **Remove connector**: stop syncing. Documents already imported stay in the store.

Only the person who set up a connector can manage it. Other members see **Owner-managed** on its card.

> [!TIP]
>
> After a large import, ask Clara to tidy it up: in Work with Clara, type `/organize-document-library` and say what you imported. See [Organize documents into collections](https://docs.clarifeye.ai/guides/sources/collections.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.