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

# Microsoft 365 / Outlook

> Let equate read invoices from an Outlook or Microsoft 365 mailbox in place: Microsoft sign-in, no passwords stored, shared mailboxes supported, with an Invoice Processed category on everything it handles.

The **Microsoft 365 / Outlook connector** reads invoices from a Microsoft mailbox you
authorise. It is the Microsoft twin of the [Gmail connector](https://equatetravel.ai/docs/connectors/gmail.md): useful
when suppliers already send to a real inbox and you don't want to set up forwarding.
equate checks the inbox every few minutes, picks up new invoice attachments, and (by
default) adds an **Invoice Processed** category to each email it has handled, so the
state of play is visible in Outlook itself.

It works with Microsoft 365 work or school accounts, Outlook.com personal accounts, and
**shared mailboxes** in a Microsoft 365 tenant.

## Connecting a mailbox

**1. Start the wizard**

**Connectors → Connector library → Microsoft 365 / Outlook → Connect.** To connect a
shared mailbox, use **Connectors → New connector → Microsoft 365 / Outlook** and fill
in the shared mailbox address first (see [shared mailboxes](#shared-mailboxes)).

**2. Sign in with Microsoft**

You're handed to Microsoft's sign-in and consent screen. Pick the account that owns
(or has access to) the mailbox. equate uses **OAuth**: it never sees or stores the
password, and access can be withdrawn at any time from
[myaccount.microsoft.com](https://myaccount.microsoft.com) → **Apps you've given
access to** (personal accounts: [account.live.com/consent](https://account.live.com/consent/Manage)).
The connector is named after the mailbox address automatically.

**3. Approve, or get an admin to**

Most tenants let you accept the permissions yourself. If Microsoft says **Need admin
approval**, your organisation only lets administrators approve apps; see
[admin consent](#admin-consent) below. Once an admin has approved equate, connect
again and it goes straight through.

**4. Choose marking**

**Mark processed emails in Outlook** is on by default: each handled email gets an
**Invoice Processed** category. Turn it off on the connector's page if you'd rather
equate leave no trace in the mailbox.

**5. Use it in a pipeline**

Choose the mailbox as a [pipeline](https://equatetravel.ai/docs/guides/pipelines.md)'s input. New mail is picked up
from then on, plus anything with attachments that arrived in the last two days.

> [!NOTE]
>
> Microsoft's consent screen must be completed by the person who signs in to the mailbox,
> so the *Save & send invite* handoff available on other connectors doesn't apply
> here. Reconnecting the same mailbox later (for example after a password reset revoked
> access) refreshes the sign-in and keeps the connector's settings and pipelines.

## What equate asks Microsoft for

| Permission | Why |
| - | - |
| `offline_access` | Keep checking the inbox after you've signed out of equate. |
| `openid`, `email`, `User.Read` | Sign you in and read the mailbox address, to name the connector. |
| `Mail.ReadWrite` | Read new messages and their attachments, and add the **Invoice Processed** category. Writing a category is a change to the message, which read-only access can't make. equate never sends, moves or deletes mail. |
| `Mail.ReadWrite.Shared` | Only when you connect a shared mailbox: the same access, for a mailbox you've been given access to. |

None of these are admin-only permissions by Microsoft's defaults.

## Admin consent

Many Microsoft 365 tenants block users from approving apps themselves. When that's the
case, the sign-in stops at **Need admin approval** (or the user is sent back to equate with
a message saying an admin must approve). An administrator approves equate once, for the
whole organisation:

**1. Open the admin consent link**

A **Global Administrator**, **Cloud Application Administrator** or **Application
Administrator** opens this link, signed in to the organisation's tenant:

```text theme={null}
https://login.microsoftonline.com/organizations/v2.0/adminconsent?client_id=<equate client id>&scope=https://graph.microsoft.com/Mail.ReadWrite https://graph.microsoft.com/User.Read offline_access openid email&redirect_uri=https://equatetravel.ai/api/connectors/outlook/callback
```

Ask equate support for the client id if you don't have it. Add
`https://graph.microsoft.com/Mail.ReadWrite.Shared` to the scope list if you'll
connect shared mailboxes. After approving, Microsoft returns the admin to equate,
which confirms the approval (the admin doesn't need an equate account for the
approval itself to take effect).

**2. Or approve it in Entra**

Alternatively, in the [Microsoft Entra admin center](https://entra.microsoft.com):
**Identity → Applications → Enterprise applications → Admin consent requests**
(when the admin consent workflow is on, the user's request waits here), or open
**equate** under Enterprise applications → **Permissions → Grant admin consent**.

**3. Connect the mailbox**

The user connects again. Microsoft no longer asks for approval.

> [!TIP]
>
> Admin consent grants equate the permissions above for users who connect a mailbox; it
> doesn't connect anything by itself and doesn't give equate access to anyone's mail until
> that person signs in through the connector.

## Shared mailboxes

To read a shared mailbox (for example `accounts@yourcompany.com`):

1. Make sure the person who will sign in has **Full Access** to the shared mailbox (an
   Exchange admin grants it in the Exchange admin center → **Mailboxes** → the shared
   mailbox → **Delegation**).
2. In **Connectors → New connector → Microsoft 365 / Outlook**, enter the shared mailbox
   address in **Shared mailbox (optional)**, then **Connect**, and sign in as that person.

equate checks the account can open the shared mailbox before saving the connector, and
names the connector after the shared mailbox. If that person later loses access, the
connector's **Test connection** says so and polling reports a failure on the source.

## How it behaves

* equate **polls** the inbox and picks up new messages with attachments. Expect new mail
  in the [work queue](https://equatetravel.ai/docs/guides/processing-invoices.md) within minutes, or press **Sync
  emails** on the pipeline to check straight away.
* PDFs, plain text, CSV and Excel attachments are processed. Attached emails (`.msg`
  items) and OneDrive/SharePoint links are skipped; forward the original instead.
* An email whose body itself is the invoice is processed as a text document too.
* The **sender's domain** attributes each invoice to a [supplier](https://equatetravel.ai/docs/guides/suppliers.md),
  exactly as with [inbound email](https://equatetravel.ai/docs/connectors/inbound-email.md).
* Each email is handled once. If processing pauses (an outage or a revoked sign-in),
  equate looks further back when it resumes, up to 30 days.
* Jobs link back to the original email (**Open email** opens it in Outlook on the web).

## Outlook vs inbound email

| | Outlook | [Inbound email](https://equatetravel.ai/docs/connectors/inbound-email.md) |
| - | - | - |
| Setup | Microsoft sign-in (an admin may need to approve once) | None: forward to a generated address |
| Mailbox | Your existing Microsoft mailbox or shared mailbox, read in place | Any mailbox that can forward |
| Visibility | **Invoice Processed** category in Outlook | **Ignored emails** view in equate |
| Best for | Teams living in Microsoft 365 | Tenants that won't approve third-party apps, supplier-direct |

## Troubleshooting

| You see | What to do |
| - | - |
| "Your organisation needs an admin to approve equate" | Follow [admin consent](#admin-consent). |
| "That account can't open the shared mailbox" | Give the account Full Access to the shared mailbox, or sign in as someone who has it. |
| The source reports "Microsoft sign-in has expired or was revoked" | Reconnect the mailbox from the connector library. Password resets, MFA changes and Conditional Access policies can revoke sign-ins. |
| Nothing arrives | Check the mail is in the **Inbox** (rules that move mail to other folders hide it from equate) and has an attachment. |

> [card] [Next: wire it into a pipeline](https://equatetravel.ai/docs/guides/pipelines.md)
>
> Choose the Outlook connector as a pipeline input so new mail is processed automatically.


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