Experimental Google providers are live-tested; Microsoft 365 support is implemented but not yet tested against a real tenant. Feedback welcome →

iobox connects to Outlook mail, Outlook Calendar, and OneDrive through Microsoft Graph, using the O365 library.

Experimental

The Microsoft 365 providers are implemented and unit-tested but have not yet been tested end-to-end against a real tenant. Please report issues.

1. Install the extra

pip install 'iobox[outlook]'

2. Register an app in Entra ID

  1. Open the Microsoft Entra admin center → App registrations → New registration.
  2. Supported account types: pick the option that matches your accounts (single tenant for one organisation; any organisational directory and personal Microsoft accounts for the broadest reach).
  3. Redirect URI: platform Public client/native, value https://login.microsoftonline.com/common/oauth2/nativeclient. Then, under Authentication → Advanced settings, set Allow public client flows to Yes — iobox signs in as a public client (no client secret), which this setting enables, and device-code sign-in needs it too.
  4. Under API permissions → Add a permission → Microsoft Graph → Delegated permissions, add what you need:

    Scope Read-only Read-write
    Mail Mail.Read Mail.ReadWrite, Mail.Send
    Calendar Calendars.Read Calendars.ReadWrite
    OneDrive Files.Read.All Files.ReadWrite.All
  5. Copy the Application (client) ID and, for a single-tenant app, the Directory (tenant) ID.

3. Configure environment

export OUTLOOK_CLIENT_ID=<application client ID>
export OUTLOOK_TENANT_ID=<tenant ID>    # or "common" (default)

Put these in a .env file or your shell profile so the CLI and MCP server both see them. For the MCP server, add them to the server's env block — see MCP configuration.

4. Add the account to a workspace

iobox space add o365 you@company.com --email --calendar --read
iobox space status

A browser sign-in opens. The token is stored at ~/.iobox/tokens/you@company.com/microsoft_token_readonly.txt (microsoft_token_standard.txt for read-write sessions).

Note

--drive is not yet accepted for o365 sessions in space add, even though the OneDriveProvider exists and can be used from the SDK.

Differences from Google

  • Outlook searches every folder except Deleted Items and Junk (unless --include-spam-trash), the same as Gmail.
  • Message IDs are ImmutableIds, so they stay stable when a message is moved between folders.
  • OneDrive deletion goes to the recycle bin; --permanent deletes permanently (OneDrive for Business / SharePoint only).

See Provider behaviour for the full list.

Next

Quick Start