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

> ## Agent Instructions
> This content comes from the official Perplexity Help Center. Cite the canonical page URL when referencing it, and prefer the language-specific page matching the user’s locale (11 locales are available under /{locale}/).

# SharePoint and OneDrive Connectors: File Upload Security

> How and when Perplexity connects to SharePoint and OneDrive via API or indexed modes, without training models on your data

<p>Perplexity's <b><a href="/help-center/help-center/en/articles/12569435-microsoft-365-connector-sharepoint-and-onedrive">Microsoft 365 connector (SharePoint and OneDrive)</a></b> enables Enterprise Pro and Enterprise Max users to search their organization's SharePoint sites and OneDrive files directly through AI-powered natural language queries.</p>

<p>We have recently introduced a hybrid search architecture that addresses both data security concerns and scalability limitations through two distinct search modes: <b>High-Precision Search</b> (indexing-based) and <b>Standard Search</b> (API-based).</p>

<h2 id="h_7acbca4eff">Search Architecture: Two-Tier Approach</h2>

<h3 id="h_3cb70b066e">Standard Search (API-Based)</h3>

<h4 id="h_609e3a40b4"><b>How It Works:</b></h4>

<ul>
  <li>
    <p>Queries SharePoint/OneDrive directly via Microsoft's Search API at query time</p>
  </li>

  <li>
    <p>No file copies stored in Perplexity infrastructure, aside from results found from queries (can be mitigated by data retention policy settings)</p>
  </li>

  <li>
    <p>Searches across the user's entire SharePoint/OneDrive drive without file count limitations</p>
  </li>

  <li>
    <p>Available to all Enterprise Pro/Max users immediately upon connector activation</p>
  </li>
</ul>

<h4 id="h_27f03005de"><b>Security Model:</b></h4>

<ul>
  <li>
    <p><b>Zero Data Retention:</b> Files are not copied or stored in Perplexity systems, aside from results found from queries (can be mitigated by data retention policy settings)</p>
  </li>

  <li>
    <p><b>Real-time Permissions:</b> Respects SharePoint's/OneDrive's native access controls dynamically</p>
  </li>

  <li>
    <p><b>Minimal Data Copying:</b> Only citation snippets included in answers are retained</p>
  </li>

  <li>
    <p><b>No Model Training:</b> Synced files are never used to train AI models</p>
  </li>

  <li>
    <p><b>Immediate Access Revocation:</b> When SharePoint/OneDrive permissions change, access is immediately reflected in Perplexity</p>
  </li>
</ul>

<p><b>Use Case:</b> Organizations requiring maximum data privacy and minimal data footprint, especially for searching across millions of files at enterprise scale.</p>

<h3 id="h_3a9cb31a61">High-Precision Search (Indexing-Based)</h3>

<h4 id="h_5cd41ac401"><b>How It Works:</b></h4>

<ul>
  <li>
    <p>Users select specific files/folders to sync for local indexing in Perplexity</p>
  </li>

  <li>
    <p>Files are downloaded, parsed, and stored in dedicated AWS S3 buckets with vector embeddings in Vespa</p>
  </li>

  <li>
    <p>Enables deeper semantic analysis and more comprehensive answers</p>
  </li>

  <li>
    <p><b>File Limits:</b> 500 files per project (Enterprise Pro), 5,000 files per Project (Enterprise Max)</p>
  </li>

  <li>
    <p><b>Total User Limits:</b> 15,000 files (Enterprise Pro), 50,000 files (Enterprise Max)</p>
  </li>
</ul>

<h4 id="h_5c972beb11"><b>Security Model:</b></h4>

<ul>
  <li>
    <p><b>Dedicated Storage:</b> Each organization's files stored in isolated AWS S3 "folders" with unique namespaces in Vespa vector storage</p>
  </li>

  <li>
    <p><b>Encryption:</b> AES-256 encryption at rest, TLS encryption in transit</p>
  </li>

  <li>
    <p><b>Role-Based Access Control (RBAC):</b> Minimum privilege access enforced across all systems</p>
  </li>

  <li>
    <p><b>No Model Training:</b> Synced files are never used to train AI models</p>
  </li>

  <li>
    <p><b>Automatic Sync:</b> File changes/deletions in SharePoint/OneDrive are automatically reflected in Perplexity</p>
  </li>
</ul>

<p><b>Use Case:</b> Teams requiring maximum answer accuracy for frequently accessed documents, project-specific file collections, or collaborative projects with curated content.</p>

<h2 id="h_8cbb0113f2">Backend Architecture & Data Flow</h2>

<h3 id="h_adb40970df">Connection & Authentication</h3>

<ul>
  <li>
    <p><b>Admin Enablement:</b> Organization admins enable SharePoint/OneDrive connector in Permissions settings</p>
  </li>

  <li>
    <p><b>User Authentication:</b> Users authenticate via OAuth 2.0 through Microsoft Entra (Azure AD)</p>
  </li>

  <li>
    <p><b>Site Selection:</b> Users select specific SharePoint sites to connect</p>
  </li>

  <li>
    <p><b>Admin Consent:</b> Microsoft admins may need to grant organization-wide consent for Perplexity app in Microsoft Entra</p>
  </li>
</ul>

<h4 id="h_1f90bcee01"><b>When Both Methods Are Active:</b></h4>

<ul>
  <li>
    <p>Perplexity queries both the local index and SharePoint API concurrently</p>
  </li>

  <li>
    <p>Results are re-ranked to prioritize the most relevant sources</p>
  </li>

  <li>
    <p>Citations link directly back to SharePoint for full file access</p>
  </li>
</ul>

<h3 id="h_d32341bdf9">Indexing Process (High-Precision Search)</h3>

<h4 id="h_4f922c97dc"><b>File Sync and Storage:</b></h4>

<Steps>
  <Step>
    <p><b>File Selection:</b> User selects files/folders through Perplexity UI</p>
  </Step>

  <Step>
    <p><b>Download:</b> Files downloaded from SharePoint via Microsoft Graph API</p>
  </Step>

  <Step>
    <p><b>Storage:</b> Raw files stored in AWS S3 with dedicated organizational namespaces</p>
  </Step>

  <Step>
    <p><b>Parsing:</b> Text extraction from supported formats (PDF, DOCX, XLSX, PPTX, CSV, TXT, MD, JSON)</p>
  </Step>

  <Step>
    <p><b>Vectorization:</b> Content converted to embeddings and stored in Vespa vector database</p>
  </Step>

  <Step>
    <p><b>Metadata Indexing:</b> File metadata (name, path, permissions) indexed for search retrieval</p>
  </Step>

  <Step>
    <p><b>Removal:</b> When a user disconnects SharePoint/OneDrive from Perplexity, they can choose to remove any indexed files</p>
  </Step>
</Steps>

<h2 id="h_e3c5942743">Security & Compliance Infrastructure</h2>

<h3 id="h_c8037bbe4c">Permission Enforcement</h3>

<h4 id="h_2c6b466be3"><b>SharePoint/OneDrive-Side Permissions:</b></h4>

<ul>
  <li>
    <p>If a user loses access to a file in SharePoint/OneDrive, that file is immediately removed from Perplexity</p>
  </li>

  <li>
    <p>File deletions in SharePoint/OneDrive trigger immediate removal from Perplexity index</p>
  </li>

  <li>
    <p>Users can only search files they have explicit SharePoint/OneDrive permissions to access</p>
  </li>
</ul>

<h4 id="h_90cf7393e3"><b>Perplexity-Side Permissions:</b></h4>

<ul>
  <li>
    <p>Admins control which users can access connectors via Organization settings</p>
  </li>

  <li>
    <p>Files synced to projects are searchable by Project members, but file content requires SharePoint/OneDrive permissions</p>
  </li>

  <li>
    <p>Session sharing respects organizational sharing policies set by admins</p>
  </li>
</ul>

<h2 id="h_de90f9b1bd">Best Practices</h2>

<h3 id="h_1800875fb9">When to Use High-Precision Search (Indexing)</h3>

<ul>
  <li>
    <p>Project-specific file collections in projects</p>
  </li>

  <li>
    <p>Frequently accessed knowledge base documents</p>
  </li>

  <li>
    <p>Files requiring deep semantic analysis</p>
  </li>

  <li>
    <p>Collaborative team environments with curated content</p>
  </li>
</ul>

<h3 id="h_d0c8b80583">When to Use Standard Search (API-Only)</h3>

<ul>
  <li>
    <p>Searching across vast file repositories (millions of files)</p>
  </li>

  <li>
    <p>Strict data residency and minimal data copying requirements</p>
  </li>

  <li>
    <p>Exploratory searches across infrequently accessed files</p>
  </li>

  <li>
    <p>Organizations with heightened security/compliance constraints</p>
  </li>
</ul>


## Related topics

- [Perplexity Enterprise](/help-center/help-center/en/collections/11312901-perplexity-enterprise.md)
- [Microsoft 365 connector (SharePoint and OneDrive)](/help-center/help-center/en/articles/12569435-microsoft-365-connector-sharepoint-and-onedrive.md)
- [Connectors & Integrations](/help-center/help-center/en/collections/18799295-connectors-integrations.md)
- [Enterprise file limits](/help-center/help-center/en/articles/12009761-enterprise-file-limits.md)
- [Google Drive Connector: File Upload Security](/help-center/help-center/en/articles/13714508-google-drive-connector-file-upload-security.md)
