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

# OneDrive for Business Integration: Sync Files and Folders into Wolfia

> Connect OneDrive for Business to Wolfia, pick the files and folders to index, and keep policies, past questionnaires, and sales collateral in sync automatically.

Most of the evidence a security questionnaire needs already sits in someone's OneDrive: the latest policy PDF, last quarter's SIG response, the architecture deck. Connecting OneDrive for Business lets Wolfia read those documents where they live, so answers cite the current version of each file and follow along as your team edits.

## What Wolfia reads

<CardGroup cols={2}>
  <Card title="Office and PDF files" icon="file-pdf">
    Word, Excel, PowerPoint, PDF, text, and Markdown files are indexed.
  </Card>

  <Card title="Folders, including subfolders" icon="folder-tree">
    Select a folder and Wolfia indexes every supported file inside it, including nested subfolders.
  </Card>

  <Card title="Any number of items" icon="check-double">
    Pick as many files and folders as you like in a single selection, and add more later.
  </Card>

  <Card title="Shortcuts to SharePoint documents" icon="link">
    A shortcut in OneDrive that points to a document in your SharePoint tenant is followed and the target document is indexed.
  </Card>
</CardGroup>

Files in other formats are skipped and shown as skipped in the sources table. Shortcuts that point outside your Microsoft 365 tenant are skipped as well. Access is read only: Wolfia never edits, moves, or shares your files.

## Before you start

* An admin, expert, or integration admin role in Wolfia. Only these roles can connect integrations.
* A Microsoft 365 work or school account with access to the files you want to index.
* Pop-ups allowed for Wolfia in your browser. The file picker opens in a new window.

<Note>
  A OneDrive for Business connection is personal. It belongs to the Microsoft account used to connect, and only that team member can see and manage the connection in Wolfia. Files are still available to your whole organization once indexed.
</Note>

## Connect OneDrive for Business

<Steps>
  <Step title="Open the Knowledge Hub">
    In Wolfia, go to **Knowledge Hub** and find **OneDrive for Business** in the list of integrations. The card is labeled **Personal**.

    <img src="https://mintcdn.com/wolfia/aaguweyggfvyxkQH/images/integrations/onedrive/available-integration-card.png?fit=max&auto=format&n=aaguweyggfvyxkQH&q=85&s=d6eb62975ce5c24e8c6e5b7adfe0bfc7" alt="The Onedrive card in the Knowledge Hub" width="864" height="490" data-path="images/integrations/onedrive/available-integration-card.png" />
  </Step>

  <Step title="Sign in with Microsoft">
    Click **Connect**. Sign in with the Microsoft account that has access to your documents and grant Wolfia read access. Wolfia confirms with **OneDrive for Business connected successfully!** and opens the OneDrive page.
  </Step>

  <Step title="Select files and folders">
    Click **Manage**, then **Add items** to open the Microsoft file picker. Select any number of files and folders and confirm. Wolfia reports how many items were added, and your selection appears in the sources table as indexing begins. The connection is listed under **Connected integrations** in the Knowledge Hub.
  </Step>
</Steps>

Indexing time depends on how much you selected. The sources table updates on its own as files finish; you can keep using Wolfia while it runs.

<img src="https://mintcdn.com/wolfia/aaguweyggfvyxkQH/images/integrations/onedrive/knowledge-hub-page.png?fit=max&auto=format&n=aaguweyggfvyxkQH&q=85&s=96888e337d1d8c6115af2feab7901dec" alt="The Onedrive page in Wolfia" width="2881" height="961" data-path="images/integrations/onedrive/knowledge-hub-page.png" />

## Keep OneDrive in sync

* **Automatic sync**: Wolfia re-reads your selected files and folders every day, picking up edits, new files added to selected folders, and removals.
* **Sync now**: click **Sync now** on the OneDrive page to refresh immediately, for example right after a policy update.
* **Change the selection**: click **Manage** to open **Manage synced items**. Use **Add more items** to pick additional files and folders, or tick items and click **Remove selected** to stop syncing them. Changing the selection starts a sync right away, and removed items are dropped from the knowledge base.
* **Disconnect**: click **Disconnect** and confirm to revoke Wolfia's access. All content synced from OneDrive is removed from the knowledge base. This cannot be undone.

## Good practices

* Select folders over individual files. A folder keeps itself current as teammates add documents to it.
* Keep superseded versions out of the selected folders, or archive them, so answers cite the latest policy.
* Connect with an account that will keep access to the documents. The connection depends on that account's permissions.

## Frequently asked questions

<AccordionGroup>
  <Accordion title="A file in a selected folder is not showing up">
    Check that the file is a supported type and that the connected Microsoft account can open it. Unsupported files appear as skipped in the sources table. Click **Sync now** after fixing access.
  </Accordion>

  <Accordion title="Wolfia says OneDrive needs to be reconnected">
    The Microsoft authorization was revoked or expired, for example after a password change or an admin policy update. Syncing pauses until you reconnect. Click **Reconnect** on the OneDrive page; your file and folder selection is kept, and Wolfia confirms with **Reconnected. Syncing has resumed.**
  </Accordion>

  <Accordion title="Can two teammates connect OneDrive?">
    Each connection is tied to one Microsoft account, and each team member sees only their own connection. Connect with the account that can see the documents you want indexed. For shared team libraries, the SharePoint integration is often a better fit.
  </Accordion>

  <Accordion title="I excluded a file in Wolfia. Will the next sync bring it back?">
    No. Files you exclude in Wolfia stay excluded on later syncs, even while they remain in a selected folder.
  </Accordion>

  <Accordion title="Does Wolfia change anything in my OneDrive?">
    No. Access is read only. Wolfia only reads the files you selected.
  </Accordion>
</AccordionGroup>

## Related pages

<CardGroup cols={2}>
  <Card title="Knowledge base" icon="book" href="/how-to/knowledge-base">
    Every source Wolfia can index and how they fit together.
  </Card>

  <Card title="SharePoint" icon="microsoft" href="/how-to/sharepoint-integration">
    Sync shared team document libraries from Microsoft 365.
  </Card>

  <Card title="Google Drive" icon="google-drive" href="/how-to/google-drive-integration">
    The same personal file sync for Google Workspace.
  </Card>

  <Card title="Adding knowledge" icon="upload" href="/how-to/adding-knowledge">
    Upload documents directly when they do not live in OneDrive.
  </Card>
</CardGroup>
