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

# Connect your SharePoint libraries to Prophecy Gov

> Link your city's SharePoint document libraries so Prophecy's AI chat and search can find files stored in SharePoint alongside all your other sources.

Connecting SharePoint gives every member of your municipality access to files stored in SharePoint document libraries directly through Prophecy's AI chat and search — no re-uploading required. Once connected, the AI automatically indexes your SharePoint content and includes it when answering questions and returning search results.

<Note>
  Only city admins can connect, manage, or remove the SharePoint integration. All members of your municipality benefit from the search access once it is set up.
</Note>

## Connect SharePoint

<Steps>
  <Step title="Go to Settings > Integrations">
    Sign in to Prophecy Gov and navigate to **Settings**, then select **Integrations** from the sidebar.
  </Step>

  <Step title="Connect SharePoint">
    On the SharePoint card, click **Connect**. Prophecy will open a secure connection window.
  </Step>

  <Step title="Sign in to your SharePoint account">
    Follow the prompts to sign in with your organization's Microsoft account. Grant the requested permissions to allow Prophecy to read your SharePoint document libraries.
  </Step>

  <Step title="Wait for the initial sync">
    After you connect, Prophecy begins indexing your SharePoint files automatically. This process runs in the background — you can navigate away and continue working. Depending on the size of your libraries, the initial sync may take a few minutes.
  </Step>
</Steps>

Once the sync completes, SharePoint documents are available in AI chat responses and search results for all members of your municipality.

## Check connection status

To verify whether SharePoint is connected, go to **Settings > Integrations**. The SharePoint card shows a **Connected** badge when the integration is active, or **Not connected** if it has not been set up.

## Use SharePoint documents in chat

After connecting, you do not need to do anything differently in chat. When you ask a question, the AI searches your SharePoint libraries alongside your Data Vault, public documents, and other sources automatically. Citations from SharePoint files appear in responses the same way as any other document — you can click a citation to view the file inline.

<Tip>
  If a SharePoint file was recently added or updated, allow a short time for Prophecy to re-index before expecting it to appear in answers.
</Tip>

## Disconnect SharePoint

<Warning>
  Disconnecting SharePoint removes all synced data from Prophecy. This action cannot be undone. You can reconnect at any time, but Prophecy will re-index your libraries from scratch.
</Warning>

To remove the SharePoint integration:

<Steps>
  <Step title="Go to Settings > Integrations">
    Navigate to **Settings > Integrations** while signed in as a city admin.
  </Step>

  <Step title="Remove the integration">
    Click **Remove Integration** on the SharePoint card.
  </Step>

  <Step title="Confirm">
    Review the confirmation dialog and click **Remove Integration** to proceed.
  </Step>
</Steps>

## Permissions

| Role        | What they can do                                         |
| ----------- | -------------------------------------------------------- |
| City admin  | Connect, view status, and disconnect SharePoint          |
| All members | Search and chat with SharePoint documents once connected |

A city admin must complete the connection before any members can access SharePoint content through Prophecy.
