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

# Microsoft 365

> Read Teams channels, Outlook mail and calendar, OneNote notebooks, and SharePoint and OneDrive documents into your workspace's memory

Six Microsoft 365 sources have their own cards: **Microsoft Teams**, **Outlook** and **Microsoft OneNote** for messages, mail and notes, and **SharePoint**, **Word** and **Excel** for documents. Each signs in with a Microsoft account, asks you to confirm which organization, mailbox or account to use, then lets you choose what to read.

## What they can see

| Card | Permission | You choose |
| - | - | - |
| **Microsoft Teams** | Read messages and replies in the Teams channels you select. See the names of your teams and channels, your name, and your organization's name. | Channels |
| **Outlook** | Read your email and calendar, including message bodies, attendees and meeting details. Identify the Microsoft account you connect. | Mail folders and your primary calendar |
| **Microsoft OneNote** | Read the pages of the OneNote notebooks you select. See your notebook names and your name. | Up to five notebooks |
| **SharePoint** | Read SharePoint sites and document libraries that your Microsoft account can access. Identify the Microsoft account you connect. | Up to 20 document libraries, by site and library name |
| **Word** | Read files in your OneDrive; Cognee imports only Word documents from the libraries you select. Identify the Microsoft account you connect. | Up to 20 OneDrive libraries |
| **Excel** | Read files in your OneDrive; Cognee imports only Excel workbooks from the libraries you select. Identify the Microsoft account you connect. | Up to 20 OneDrive libraries |

What Cognee reads from Teams and OneNote becomes visible to everyone in the Cognee workspace. What it reads from Outlook, SharePoint, Word and Excel is visible to everyone who can read the target dataset; Microsoft file permissions are not copied.

## Connecting

**1. Open the card**

In [Integrations](https://docs.cognee.ai/cognee-cloud/ui/integrations.md) → **Data sources**, click **Connect** on the card. Only the workspace owner can. If the card reads *… is not switched on here yet.*, that source isn't available on your workspace yet; see [Card states](https://docs.cognee.ai/cognee-cloud/ui/integrations.md#card-states).

**2. Sign in with Microsoft**

Choose your Microsoft account. Teams and OneNote need a work or school account; personal Microsoft accounts are not supported for OneNote yet.

**3. Confirm the organization, mailbox or account**

Cognee asks you to confirm what you signed in to: the organization for Teams, the mailbox for Outlook, the account for OneNote, SharePoint, Word and Excel. Nothing is imported yet.

**4. Choose what to read**

Tick channels, mail folders and the calendar, notebooks, or document libraries, and click **Save and sync**. Every card except Teams needs at least one item ticked.

> [!WARNING]
>
> **Admin approval.** Reading Teams channel messages always needs approval from a Microsoft 365 admin of your organization; an admin consents once for the whole organization. Outlook, OneNote, SharePoint, Word and Excel need it only if your organization requires approval for new apps. If Microsoft asks for admin approval, contact your admin and connect again once it is granted.

## How they stay current

All six read once a day, each time you save a selection, and when you click **Sync now**. Unticking an item forgets what was read from it after the next successful sync.

| Card | Details |
| - | - |
| **Microsoft Teams** | A message deleted in Teams is removed the next time Cognee reads its thread. A thread whose every message was deleted stays as it was last read. |
| **Outlook** | The primary calendar covers the previous and next 12 months, and the window advances monthly. Deleted messages and cancelled or deleted events are removed on the next sync. Shared mailboxes, secondary calendars and attachments are not imported. |
| **Microsoft OneNote** | At most five notebooks per connection. A page deleted in OneNote is forgotten once Microsoft confirms the deletion; a page you can no longer open is kept as it was last read. If the list is empty, create a notebook in OneNote, then refresh. |
| **SharePoint** | Imports Word (.docx), Excel (.xlsx), PDF, UTF-8 text, Markdown and CSV files, nested folders included. Site pages, lists, shortcuts and older .doc/.xls files are not imported. |
| **Word** | Imports the text and tables of .docx files, nested folders included. Older .doc files and embedded attachments are not imported. Use SharePoint for a team site's documents. |
| **Excel** | Imports the saved cell contents of .xlsx workbooks, nested folders included. Formulas are not recalculated and macros are not run. Older .xls files are not imported. Use SharePoint for a team site's workbooks. |

SharePoint, Word and Excel import in batches, so a large library may need several syncs. Files over 10 MB, files whose extracted text is too large, and unreadable files are skipped and listed in the sync details. Deleted files are removed on a later sync.

Disconnecting offers to delete what Cognee learned from the connection. The rest of the dialog works as described in [Integrations](https://docs.cognee.ai/cognee-cloud/ui/integrations.md#choosing-what-a-connection-reads).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.