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

# Microsoft SharePoint

> Connect Microsoft SharePoint to sync document libraries to Endgame

Use the instructions below to enable the Microsoft SharePoint integration in Endgame. Once enabled, Endgame will ingest documents from your SharePoint document libraries, making them available in Endgame chat responses.

## Enable the integration

<Note>
  Connecting to the Microsoft SharePoint API requires that the connecting user
  is a SharePoint Administrator.
</Note>

<Steps>
  <Step title="Navigate to Configuration">
    Navigate to the [integrations page](https://app.endgame.io/settings/integrations). Only Endgame Admins can configure organization integrations.
  </Step>

  <Step title="Start Setup">
    From the integrations page, click "Connect" on the SharePoint card to kick off the authentication process.

    <Frame caption="Microsoft SharePoint connection">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/connect-microsoft-sharepoint-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=8234834f9523ff376ca28b1c3fe81d45" alt="Microsoft SharePoint connection" className="rounded-lg" width="1472" height="202" data-path="images/connect-microsoft-sharepoint-03-18-26.png" />
    </Frame>
  </Step>

  <Step title="Grant Permissions">
    Select the Microsoft account you wish to connect to Endgame and go through the authentication flow. Ensure you check the box for "Consent on behalf of your organization" to give Endgame access to the necessary scopes.

    <Frame caption="Microsoft account selection">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/pick-microsoft-account-03-10-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=af35f049bcb1768f404f14e65f1a6b02" alt="Microsoft account selection" className="rounded-lg" width="1048" height="814" data-path="images/pick-microsoft-account-03-10-26.png" />
    </Frame>

    <Frame caption="Microsoft grant permission">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/grant-endgame-permission-microsoft-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=503857454057229cf5136f507fc2ffe1" alt="Microsoft grant permission" className="rounded-lg" width="1034" height="1344" data-path="images/grant-endgame-permission-microsoft-03-18-26.png" />
    </Frame>
  </Step>

  <Step title="Add Document Libraries">
    Once connected, click to Manage your configuration from the integrations page. You can now add SharePoint document libraries to sync with Endgame.

    First, search for the SharePoint site that contains the document library you want to sync.

    <Frame caption="Search for a SharePoint site">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/select-sharepoint-site-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=67fac202f0bf8795745d9e1fdee5ef87" alt="Search for a SharePoint site" className="rounded-lg" width="1888" height="672" data-path="images/select-sharepoint-site-03-18-26.png" />
    </Frame>

    After selecting a site, you will see the available document libraries. Click "Select" to add as many document libraries as you wish to connect from that site.

    <Frame caption="Select a document library">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/sharepoint-document-library-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=b6e1384beb762cb57aeeb34d228b5f7c" alt="Select a document library" className="rounded-lg" width="1126" height="424" data-path="images/sharepoint-document-library-03-18-26.png" />
    </Frame>

    Your synced document libraries will appear in the table below, showing the site, document library name, file count, and last sync time. You can delete a synced library and its documents from Endgame at any time by clicking the trash icon. Your libraries sync to Endgame immediately upon connection and then every 15 minutes thereafter.

    <Frame caption="Synced document libraries">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/sharepoint-synced-document-library-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=2357a5da7f6842d62b64b9c6d739b424" alt="Synced document libraries" className="rounded-lg" width="1748" height="420" data-path="images/sharepoint-synced-document-library-03-18-26.png" />
    </Frame>
  </Step>

  <Step title="Manage your connection">
    You can view and manage your full SharePoint configuration from the [integration page](https://app.endgame.io/settings/integrations/sharepoint). To disconnect, click the "Disconnect" button in the bottom left corner. Disconnecting will stop all document syncing and remove the configuration associated with your library.

    This action does not delete the documents that were previously synced into Endgame. If you want to completely delete documents from Endgame, click the trash icon next to the library.

    If a library is still syncing and you remove documents from the library, Endgame will reflect that change and delete those documents.

    To update your connection with a new user, hover over the Connect button in the top right corner until it shows "Reconnect," then click it to trigger the authentication process. Reconnecting will preserve your library configuration.

    <Frame caption="SharePoint integration view">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/full-sharepoint-view-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=924ade502e8412c3f41b9a7dcf50eca0" alt="SharePoint integration view" className="rounded-lg" width="1986" height="1228" data-path="images/full-sharepoint-view-03-18-26.png" />
    </Frame>

    <Frame caption="Disconnect SharePoint">
      <img src="https://mintcdn.com/endgame-e965a12c/mFJAq0KPpn-UquDi/images/disconnect-sharepoint-03-18-26.png?fit=max&auto=format&n=mFJAq0KPpn-UquDi&q=85&s=c1c050dac9fdde2b8712592659e34069" alt="Disconnect SharePoint" className="rounded-lg" width="868" height="430" data-path="images/disconnect-sharepoint-03-18-26.png" />
    </Frame>
  </Step>
</Steps>

<Note>
  Endgame will *only* ingest document libraries that you have explicitly added
  in the SharePoint integration configuration. No other data is accessed or
  ingested without your permission.
</Note>

## What's next?

That's it! Now that you've connected SharePoint to Endgame, we'll automatically sync your document libraries and present our insights in Endgame.

## Need help or have feedback?

We'd love to hear from you! You can reach us at [support@endgame.io](mailto:support@endgame.io).
