5Lime Labs

Sheet noteHow AI connects to Outlook, Teams, OneDrive and SharePoint through Microsoft Graph and Work IQ MCP: Entra consent, scoped mailbox access, limits, approvals.

Sheet SY-027 · Email, calendar and documents

Microsoft 365, connected to AI through Graph and Microsoft's own MCP server

The CPA's client folders are in SharePoint, the adjuster's correspondence is in Outlook, and the project manager answers half his questions in Teams. Microsoft Graph and Microsoft's Work IQ MCP server let an AI agent read and act on that data under permissions your tenant admin grants in Microsoft Entra.

VendorMicrosoft Corporation
CategoryEmail, calendar and documents
AccessOAuth 2.0 through an app registered in Microsoft Entra ID, calling Microsoft Graph. Delegated permissions act as a signed-in user and can only reach what that user can reach. Application permissions let a background service run without a user and need admin consent. For mail and calendars, Exchange Online's RBAC for Applications lets an admin scope an app to a specific set of mailboxes instead of the whole tenant.
MCP serverofficial MCP server
SY-027.1What it isMicrosoft 365

Microsoft 365 bundles Exchange Online (Outlook mail, calendar and contacts), Teams, OneDrive, SharePoint, the Office apps, Planner and the Entra ID directory that controls who can sign in to what. Accounting firms, law offices, insurance agencies, contractors and manufacturers tend to live in it because the Word and Excel files their clients and regulators expect are native there. Almost all of it is reachable through one API, Microsoft Graph.

How access works

Microsoft's Work IQ MCP server exposes mail, calendar, OneDrive and SharePoint files, Teams messages, people and Planner through one endpoint, using Microsoft Entra ID delegated sign-in only (no app-only access), with Microsoft 365 permissions, sensitivity labels and compliance policies enforced. It is billed per use through Copilot Credits. Admins see and govern MCP servers under Agents > Tools in the Microsoft 365 admin center. Microsoft says its older per-app MCP servers (Mail, Calendar, Teams, SharePoint, OneDrive, Word and others) are kept for backward compatibility and should not be used in production or new projects. For unattended jobs we call Graph directly with app permissions scoped to named mailboxes. Microsoft's HIPAA BAA is included by default through the Online Services Data Protection Addendum for covered entities and business associates, and covers Exchange Online, Teams, SharePoint Online and OneDrive for Business.

Vendor docs: https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/work-iq/mcp/overview

SY-027.2ScopeWhat an AI agent can do

Once Microsoft 365 is connected.

C01Starts at step 01 Read

Read a shared mailbox and route it

Watch the claims@ or ap@ mailbox, read each message and attachment, and tag it by client, policy or job number. App access is scoped in Exchange to that one mailbox, so the agent cannot open the partners' inboxes.

C02Starts at step 02 Draft

Draft the reply in Outlook

Write the response to a certificate-of-insurance request or a document request from a tax client as an Outlook draft, pulling the facts from the right SharePoint folder. The account manager reviews and sends.

C03Starts at step 01 Read

Answer questions from SharePoint and Teams

Search the firm's SharePoint libraries and Teams channels and answer with links back to the source file, respecting the permissions of the person asking. A new hire stops interrupting the senior PM to find the latest submittal log.

C04Starts at step 03 Approve

File documents where they belong

Save the signed engagement letter or the subcontractor's W-9 into the right client or job folder in SharePoint, named the way your office names things. Moving or renaming existing files waits for approval at first.

C05Starts at step 03 Approve

Schedule across calendars

Find time across several Outlook calendars and propose the meeting. Sending the invite to an outside client goes out after a person confirms.

C06Starts at step 04 Act

Post status to a Teams channel

Drop the daily list of overdue items, new requests and upcoming deadlines into a Teams channel. Internal posts like this can run without approval once the format has been checked.

SY-027.3CautionsRead before connecting

What to watch.

  • An app granted Mail.Read in Entra ID without a scope can read every mailbox in the company. We use Exchange RBAC for Applications to limit it to named mailboxes, and Microsoft warns that an unscoped Entra grant left in place cancels out that scoping, so we remove it.
  • Outlook allows 10,000 Graph requests per app per mailbox in 10 minutes, with four concurrent requests. Backfilling years of mail takes time, and change notifications are used for new mail instead of constant polling.
  • Graph change notifications for mail and calendar expire within about seven days (under one day when they include message content) and have to be renewed, so we monitor the subscription and fall back to delta queries.
  • Work IQ MCP is billed per use in Copilot Credits and works only with a signed-in user. Unattended back-office jobs use the Graph API directly, which keeps cost predictable and lets us scope access tightly.

Microsoft 365 and AI: questions.

Q.01Who has to approve the connection?

Your Microsoft 365 global admin, or whoever manages your tenant (often your IT provider). They approve the app's permissions in Microsoft Entra, and for mailbox access an Exchange admin scopes it to the specific mailboxes involved. We never ask for anyone's password.

Q.02Do we need Microsoft 365 Copilot licenses for this?

Not for the Graph connections we build. Those run on the app registration your admin approves in Entra. Microsoft bills its Work IQ MCP server per use through Copilot Credits, so we use it where it adds something and call Graph directly where it does not. Confirm the billing details against your own Microsoft agreement.

Q.03Can the AI see every mailbox in the company?

Only if it is set up carelessly. With Exchange RBAC for Applications we limit an app to a defined group of mailboxes, and with delegated access it can only see what the signed-in user can already see.

Q.04Does this work for a HIPAA practice or a firm with client confidentiality rules?

Microsoft includes its HIPAA BAA by default for covered entities and business associates, covering Exchange Online, Teams, SharePoint and OneDrive. We sign our own BAA as well, keep access to the minimum mailboxes and libraries, log every action, and use BAA-covered AI models. For law firms we work under ABA Model Rule 1.6 confidentiality.

C-200Start hereReply within 1 business day

Run Microsoft 365? Tell us what else you run.

Microsoft 365 is rarely the only system. List the others and the job that eats the most time, and we'll reply with what we'd connect first.

All systems · Security · How it works

Consult request
No. 0000
2026-11-28

A person on our team reads these and replies within one business day. Used only to answer you. Privacy.

Received

Got it, friend.

We'll get back to you within one business day. If it can't wait, text or call (224) 243-6864.