# Connect a Microsoft 365 mailbox

> Let's connect a mailbox, like a shared orders inbox. Then your AI coworkers can read the mail that comes in and reply from it. You sign in to Microsoft once, and we set up the rest. Nobody needs to run PowerShell.
> Web version: https://docs.iterabase.com/connect-microsoft-365/ · nuno@iterabase.com

**Who can do this:** an Iterabase Admin who can also sign in to Microsoft as a **Global Administrator**. Your first mailbox lets Iterabase in for your whole company. Only a Global Administrator can do that. Please use that same account when you add more mailboxes later.

**How long it takes:** about 5 minutes for you. After that, Microsoft can take up to 2 hours to switch it on.

## 1. Open the Microsoft 365 card

Go to **Workspace → Integrations**. The Microsoft 365 card is at the top. Select **Add mailbox**.

![The Microsoft 365 card before any mailbox is added](https://docs.iterabase.com/docs/connect-microsoft-365/m365-empty.webp)

## 2. Say yes to Iterabase (first time only)

Microsoft asks you to sign in. Then it shows what Iterabase would like to do:

- **Sign in and read user profile**
- **Manage Exchange configuration**. We use this to limit our access to just the mailboxes you pick.

Under Iterabase you'll see **Iterabase Inc** with a blue tick. That means Microsoft has checked who we are.

Select **Accept**. You only do this once. Next time you add a mailbox, you skip this step.

![Microsoft's permission page for Iterabase](https://docs.iterabase.com/docs/connect-microsoft-365/consent.webp)

## 3. Sign in to Exchange

Microsoft asks you to sign in one more time, now to Exchange. Use the same Global Administrator account.

Right after you say yes, Microsoft may need a moment. You might see **"Microsoft is still finishing the connection. Trying again in … s"**. That's fine. Just wait, and we'll try again for you.

![Microsoft's sign-in for Exchange](https://docs.iterabase.com/docs/connect-microsoft-365/exchange-signin.webp)

## 4. Pick your mailboxes

We list your mailboxes, with shared ones first. Shared ones say **Shared, no license**. Ones you've added before say **Added**.

Tick the mailboxes your AI coworkers may read and send from. Then select **Add 1 mailbox** (or **Add 3 mailboxes**, and so on). Got more than 10? You can search, show **Shared mailboxes only**, or **Select all**.

![Choosing mailboxes](https://docs.iterabase.com/docs/connect-microsoft-365/m365-picker.webp)

Setting up takes about 30 seconds.

![Setting up](https://docs.iterabase.com/docs/connect-microsoft-365/m365-settingup.webp)

## 5. Give Microsoft a little time

When setup is done, you'll see **"Done. Microsoft confirmed the access."** Each new mailbox gets an amber dot and says **"Microsoft is applying access. This can take up to 2 hours."** You don't need to keep the page open.

Mail starts work only once a coworker reads the mailbox (step 7). We don't pick up mail that comes in before then.

![Done, with Microsoft applying access](https://docs.iterabase.com/docs/connect-microsoft-365/m365-done.webp)

## 6. We'll email you when it's ready

When Microsoft is done, the dot turns green. The row says **Connected. No coworker reads it yet.** We also send you one email, from no-reply@email.iterabase.com:

- **Subject:** *orders@yourcompany.com is connected to Iterabase*
- **Body:** *Mail sent to orders@yourcompany.com now reaches Iterabase. To start work from it, open an AI coworker in Team, choose this mailbox under Mail from in Edit, and publish.*

![The go-live email](https://docs.iterabase.com/docs/connect-microsoft-365/live-email.webp)

![Both mailboxes connected, no coworker reading them yet](https://docs.iterabase.com/docs/connect-microsoft-365/m365-connected.webp)

## 7. Pick a coworker to read it

Open a coworker in **Team** and select **Edit**. Tick the mailbox under **Mail from**, then select **Publish**. From now on, mail to that mailbox starts the coworker's work. Its row names the coworker, like **Receiving mail · Orders**. [Guide 3](https://docs.iterabase.com/choose-a-mailbox/) shows each step: **Choose which mailbox a coworker reads**.

## 8. Require Microsoft sign-in

Want everyone to sign in with Microsoft? Under the Microsoft 365 card, turn on **Require Microsoft sign-in**. Then passwords stop working in this workspace. Sign in with Microsoft yourself first, so you know it works for you.

## If something goes wrong

| What you see | What to do |
| --- | --- |
| This account can't manage Exchange. | Sign in with a Global Administrator account. |
| Microsoft is still preparing your organization. | This can happen when your Microsoft account is new. Try again in a few hours. |
| Setup finished, but Microsoft doesn't give access yet. | Wait a few minutes. Then select **Add mailbox** again. |
| The sign-in timed out before setup finished. | Select **Add mailbox** again. |
| Can't be reached since … | Select **Add mailbox** again. Pick the same mailbox to fix it. |
| Setup couldn't finish. | Select **Add mailbox** again. Still stuck? Get in touch and we'll help. |
