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

# Microsoft Teams Integration

> Automatically organize files shared in your Microsoft Teams channels

## Overview

The Drive AI integrates with Microsoft Teams to automatically capture and organize files shared across your Teams channels. Important documents shared during conversations are automatically imported and organized in your Drive AI workspace.

## How It Works

Once connected, The Drive AI monitors your Teams channels for shared files:

1. **A file is shared** in a Teams channel or chat
2. **The Drive AI detects** the file automatically
3. **The file is imported** to your workspace
4. **AI organizes** the file into the appropriate folder based on its content

All of this happens in real time—no manual intervention required.

## Connecting Microsoft Teams

<Steps>
  <Step title="Navigate to Integrations">
    Go to **Settings** > **Integrations** > **Microsoft Teams**.
  </Step>

  <Step title="Connect Your Microsoft Account">
    Click **Connect Microsoft Teams** and sign in with your Microsoft account.
  </Step>

  <Step title="Authorize Access">
    Grant The Drive AI permission to access files shared in your Teams channels. Authentication uses secure OAuth—your Microsoft password is never stored.
  </Step>

  <Step title="Select Channels">
    Choose which Teams channels The Drive AI should monitor for files.
  </Step>
</Steps>

## What Gets Imported

The Drive AI imports files shared in your connected Teams channels:

* **Documents**: PDF, DOCX, DOC, TXT, RTF
* **Spreadsheets**: XLSX, XLS, CSV
* **Presentations**: PPTX, PPT
* **Images**: PNG, JPG, GIF (Premium)

<Note>
  Only files shared in monitored channels are imported. Private chats are not monitored unless you explicitly enable them.
</Note>

## Organization

Imported Teams files are organized based on:

| Factor              | Example                                    |
| ------------------- | ------------------------------------------ |
| **Content**         | Invoice detected → Finance folder          |
| **Channel context** | Shared in Engineering → Engineering folder |
| **File type**       | Presentation → relevant project folder     |

The AI uses both the file content and the Teams channel context to determine the best location for each file.

## Configuration

### Choosing Channels

Select which channels to monitor:

1. Go to **Settings** > **Integrations** > **Microsoft Teams**
2. Click **Manage Channels**
3. Toggle channels on or off

### File Type Filtering

Control which file types are imported:

1. Go to **Settings** > **Integrations** > **Microsoft Teams**
2. Click **File Settings**
3. Enable or disable specific file types

## Managing Your Connection

### Disconnecting

1. Go to **Settings** > **Integrations** > **Microsoft Teams**
2. Click **Disconnect**
3. Confirm the disconnection

<Warning>
  Disconnecting stops future file imports. Files already imported to your workspace are not deleted.
</Warning>

## Privacy & Security

<AccordionGroup>
  <Accordion title="What data do you access?" icon="eye">
    The Drive AI only accesses files shared in your selected Teams channels. We do not read or store your Teams messages—only the files attached to them.
  </Accordion>

  <Accordion title="Is my data secure?" icon="shield-halved">
    All data transfers are encrypted. Your Microsoft credentials are handled through secure OAuth—we never see or store your password.
  </Accordion>

  <Accordion title="Can I revoke access?" icon="key">
    Yes. You can disconnect The Drive AI from Microsoft Teams at any time. You can also revoke access from your Microsoft account settings.
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Files Not Importing" icon="file-circle-xmark">
    * Check that the Teams integration is connected and not paused
    * Verify the channel is in your monitored channels list
    * Ensure the file type is supported and not filtered out
    * Check that you have sufficient storage space
  </Accordion>

  <Accordion title="Wrong Channel Files Importing" icon="filter">
    * Review your monitored channels list in Settings > Integrations > Microsoft Teams
    * Disable channels you do not want monitored
  </Accordion>
</AccordionGroup>

## What's Next?

<CardGroup cols={2}>
  <Card title="Slack Integration" icon="slack" href="/integrations/slack">
    Auto-organize files from Slack.
  </Card>

  <Card title="Email Integration" icon="envelope" href="/integrations/email-integration">
    Auto-import attachments from Gmail and Outlook.
  </Card>
</CardGroup>
