# Outlook plugin

The Outlook plugin lets a Vaubaan Gateway mission use Outlook without handing the agent a credential. Mail and calendar of a Microsoft 365 or Outlook.com account, through Microsoft Graph

Version `0.1.2` · 27 permissions · 6 macro-actions · 23 tools · 2 gateways run this plugin (over the last 90 days).

## How Outlook is modelled

2 planes, 16 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

- **Account** — One account is one Microsoft 365 or Outlook.com account: you sign in at Microsoft through the OAuth broker this gateway is enrolled with, with nothing to create or paste.
  - Plane `mail` — The mailbox of one Microsoft account: folders, messages, attachments, drafts.
    - `mailbox` (1 *; the resource) — The resource an account exposes: the mailbox of the account. Its identifier is the ref (alice\~contoso.com); an address the slice grammar cannot carry is written \[\*\].
      - `folder` (1 *) — A mail folder (Inbox, Archive, a folder of the person).
      - `message` (1 *) — A message, by its immutable id; a list of messages is \[\*\].
        - `attachment` (1 *) — An attachment of a message (a file, an attached item, a link).
      - `draft` (1 *) — An unsent message of the Drafts folder; without an identifier, a new one.
      - `from-zone` (1) — Synthetic marker: the zone of the senders a read reveals — automated, internal, known-external, unknown — from the mailbox metadata. Not a Graph entity.
      - `to-zone` (1) — Synthetic marker: the worst zone of the recipients of a draft — self, internal, allowlist. Not a Graph entity.
      - `send-zone` (1) — Synthetic marker: the worst zone of the recipients of a send — self, internal, allowlist, external-unbounded. Not a Graph entity.
      - `bulk-marker` (1) — Synthetic marker: a search not bounded by exactly one from: address, which may return mail of anyone.
  - Plane `calendar` — The calendars of the account, their events, and the availability of people.
    - `calendar` (1 *) — A calendar of the account: \`default\` for its default calendar, or a calendar id; the list of calendars is \[\*\].
      - `event` (1 *) — An event of the calendar, an occurrence of a recurring one included.
        - `delete` (1) — Verb leaf: deleting the event (Exchange cancels it for its attendees).
        - `response` (1) — Verb leaf: answering an invitation (accept, tentative, decline).
        - `notify` (1) — Verb leaf: Exchange mails the event's attendees about a change or a cancellation.
      - `guests` (1) — Synthetic marker: the people a call invites, by zone — internal (an internal domain of the mailbox) or external. Not a Graph entity.
    - `free-busy` (1) — The availability of people (busy slots, never the events themselves), read to suggest a time.

Marks: 1 exactly one, named; n a finite, known set; * an unknown number, possibly all.

- **Account**: One account is one Microsoft 365 or Outlook.com account: you sign in at Microsoft through the OAuth broker this gateway is enrolled with, with nothing to create or paste.
- **Resource**: Its one resource is the account's mailbox, which also holds its calendars. Reads are priced by who sent the mail, drafts and sends by who receives them, invitations by who is invited; a draft to an address outside the internal domains and the allowlists is refused, and a send there is its own permission, external and irreversible.
- **Environment**: No permission of this service depends on an environment: each is held once, whatever the resource. Known: none. Carried by: nothing in the model.

## What an agent does at Outlook: 6 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

1. **Read mail and agenda** — Folders, messages whoever sent them, drafts, calendars, events and free/busy. Every mail read is priced by who sent it: a colleague, an allowlisted contact, a notification, or anyone, which is also the price of reading a message by its id. A search that does not name exactly one sender is a bulk read. Calendars, events and free/busy come with it, because an agenda is read for the same work. (10 permissions)
2. **Draft** — Write drafts and reply drafts. Nothing leaves. Drafts and reply drafts, priced by their worst recipient: oneself, colleagues or allowlisted contacts. A draft to anyone else is refused outright, so nothing can be staged for an unknown address. Nothing leaves while it is a draft. (4 permissions)
3. **Send** — Send a message or a draft. Nothing can call it back. A message or a stored draft leaves the mailbox, under the owner's name, and nothing calls it back. The permission follows the worst recipient, up to anyone at all; a stored draft is sent only when it holds exactly the recipients the call declared. (4 permissions)
4. **Tidy** — Move, mark, flag and categorise messages; create folders. Moving messages between folders, marking them read, flagging them, setting their categories, and creating folders. Nothing is deleted: a move to Deleted Items, Junk Email or the Outbox is refused. (2 permissions)
5. **Schedule** — Create, change, delete and answer events. Creating, changing and deleting events, and answering invitations. Who is invited, and the mail Exchange sends attendees about a change, are the next macro-action. (4 permissions)
6. **Invite** — Invite people and let Exchange mail the attendees. Inviting colleagues or people outside the company, who receive the event by mail. Graph cannot keep Exchange from mailing the attendees of a change or a cancellation, so every update and deletion of an event also needs the permission to let Exchange mail them, from here. (3 permissions)

## The map

27 permissions of 6 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Careful ×1: Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out. Trusting ×3: Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3. Autonomous ×10: Everything but irreversible actions runs freely; those ask first. Limits ×10.

yes: runs freely; ask me: ask me first; no: not included. A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

### Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

- Send: Send a message to pre-approved external contacts (allowlist) `outlook.send-to-zone-allowlist`, irreversible — At least one recipient is outside the organisation, and every one is internal or on the mailbox's allowlists. The message leaves under the owner's name and cannot be called back. Careful: no · Trusting: ask me · 60 a day · Autonomous: ask me · 200 a day.
- Send: Send a message to any external recipient `outlook.send-to-zone-external`, irreversible — At least one recipient is neither internal nor on the allowlists. The cardinal exfiltration vector: whatever the agent read can leave, under the owner's name, to an address an injected message chose, and nothing calls it back. Accept it only for a mission whose job is to write to unknown people, with tight limits and an approval. Careful: no · Trusting: ask me · 30 a day · Autonomous: ask me · 100 a day.
- Invite: Invite people outside the company `outlook.invite-external`, irreversible — Adding attendees on any other domain. Exchange mails them the event and its body: the way calendar content leaves the company, and a way to spam in the account's name. Scheduling with customers needs it; it is best asked for. Careful: no · Trusting: ask me · 90 a day · Autonomous: ask me · 300 a day.
- Invite: Let Exchange mail the attendees about a change or a cancellation `outlook.notify-guests`, irreversible — Exchange mails the current attendees of a meeting this account organises, who may be outside the company, the new version of the event or its cancellation. Graph offers no switch to keep it silent, so every change and every deletion needs this permission; who the attendees are is not known before the call. Careful: no · Trusting: ask me · 150 a day · Autonomous: ask me · 500 a day.

### Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

- Send: Send a message to internal recipients only `outlook.send-to-zone-internal`, costly to undo — Every recipient is the mailbox or on an internal domain. The message stays inside the organisation but cannot be called back: a wrong one is repaired by a correction, and colleagues may act on it before. Careful: ask me · 20 a day · Trusting: ask me · 60 a day · Autonomous: yes · 200 a day.
- Schedule: Change events (time, subject, body, place, attendees) `outlook.event-change`, costly to undo — Moving or rewriting an existing event. Undone by changing it back, but whoever read it meanwhile acted on it; Exchange mails the attendees the change (a permission of its own). Careful: ask me · 200 a day · Trusting: ask me · 600 a day · Autonomous: yes · 2,000 a day.
- Schedule: Delete events `outlook.event-delete`, costly to undo — Removing an event from a calendar; on a meeting this account organises, Exchange sends every attendee a cancellation. A cancelled meeting is not undone for the people who were told. Careful: ask me · 30 a day · Trusting: ask me · 90 a day · Autonomous: yes · 300 a day.
- Invite: Invite people of the company `outlook.invite-internal`, costly to undo — Adding attendees whose address is on an internal domain of the mailbox. Exchange mails them the event and its body: it stays inside the company. Careful: ask me · 100 a day · Trusting: ask me · 300 a day · Autonomous: yes · 1,000 a day.

### Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

- Read mail and agenda: Bulk read across the mailbox (non-discriminating search) `outlook.bulk-read`, in bulk — A search not bounded by exactly one from: address (is:unread, free words, no sender) may return many messages of anyone at once and bypass per-sender zoning. A distinct permission forces an explicit acceptance. Careful: ask me · 20 a day · Trusting: yes · 60 a day · Autonomous: yes · 200 a day.
- Read mail and agenda: Read events (subjects, times, places, attendees, bodies) `outlook.event-read`, personal data — Listing, searching and reading the events of a calendar. An agenda says who meets whom, when and where, and a body may hold a meeting link or a document; it is also text written by others, a path for prompt injection. Careful: ask me · 2,000 a day · Trusting: yes · 6,000 a day · Autonomous: yes · 20,000 a day.

### Harmless

Runs freely at every level.

- Read mail and agenda: Read the mailbox structure (folders, message lists, attachment lists) `outlook.read-mailbox` — Folder names and counts, the containment slice of a message or an attachment read (whose content risk is carried by the from-zone permission needed alongside), and the zoning configuration \`outlook\_\_describe\_zones\` returns. The baseline every read needs. Careful: yes · 2,000 a day · Trusting: yes · 6,000 a day · Autonomous: yes · 20,000 a day.
- Read mail and agenda: Read messages from automated / notification senders `outlook.read-from-zone-automated` — Notifications (no-reply, alerts) from internal or allowlisted domains. Little direct personal data, but the bodies often carry injectable links and text. Kept apart so an operations agent can read alerts without opening personal correspondence. Careful: yes · 1,000 a day · Trusting: yes · 3,000 a day · Autonomous: yes · 10,000 a day.
- Read mail and agenda: Read messages from internal-domain senders `outlook.read-from-zone-internal` — Correspondence between colleagues: it may hold secrets, decisions and privileged context. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Read mail and agenda: Read messages from known external contacts (allowlist) `outlook.read-from-zone-known-external` — Messages from the partners and customers on the mailbox's allowlists. Routine business traffic, comparatively low risk. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Read mail and agenda: Read messages from unknown senders `outlook.read-from-zone-unknown` — Messages whose sender is neither internal nor allowlisted, and every message read by its id (the sender is known only after the fetch). The cardinal prompt-injection vector: text written by anyone. Tight limits recommended. Careful: yes · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.
- Read mail and agenda: Read existing drafts `outlook.read-drafts` — Drafts reveal unsent intentions and earlier versions of external communications. A search in the Drafts folder needs this permission too. Careful: yes · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.
- Read mail and agenda: List the calendars of the account `outlook.calendar-list` — The names, owners and edit rights of the account's calendars, shared ones included. Nothing of an event. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Read mail and agenda: Read when people are free or busy `outlook.free-busy-read` — Suggesting a time reads the busy slots of the people named, as far as Exchange shares them with this account. No calendar bounds who is asked about. Careful: yes · 300 a day · Trusting: yes · 900 a day · Autonomous: yes · 3,000 a day.
- Draft: Create a draft or a reply draft (any recipient) `outlook.draft-write` — The baseline of a draft, whatever its recipients; who could receive it is the draft-to-zone permission needed alongside. A draft is deleted in Outlook and is never sent by being written. Careful: yes · 300 a day · Trusting: yes · 900 a day · Autonomous: yes · 3,000 a day.
- Draft: Create a draft addressed to the mailbox itself only (or to nobody yet) `outlook.draft-to-zone-self` — A memo to oneself. Nothing leaves while it is a draft; sending it is a send permission of its own, priced by its recipients. Careful: yes · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.
- Draft: Create a draft addressed to internal recipients only `outlook.draft-to-zone-internal` — A draft for colleagues. It stays internal while unsent. Careful: yes · 200 a day · Trusting: yes · 600 a day · Autonomous: yes · 2,000 a day.
- Draft: Create a draft to pre-approved external contacts (allowlist) `outlook.draft-to-zone-allowlist` — A draft to contacts on the mailbox's allowlists. Limited risk while unsent; sending it needs outlook.send-to-zone-allowlist as well. Careful: yes · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.
- Send: Send a message to the mailbox itself only `outlook.send-to-zone-self` — A note or a report the agent mails to the account's own address. Nothing leaves the account; the message still lands in the inbox, where whoever reads it may act on it. Careful: yes · 50 a day · Trusting: yes · 150 a day · Autonomous: yes · 500 a day.
- Tidy: Move a message, mark it read or unread, flag it, set its categories `outlook.message-organize` — Mailbox organisation on one identified message, undone the same way. A move to Deleted Items, Junk Email, the recoverable items or the Outbox is refused by the plugin: a deletion is not a move. Careful: yes · 500 a day · Trusting: yes · 1,500 a day · Autonomous: yes · 5,000 a day.
- Tidy: Create a mail folder `outlook.folder-create` — Adds a folder at the top of the mailbox or under another one. No message moves and nothing is deleted; the owner removes a folder in Outlook. Careful: yes · 20 a day · Trusting: yes · 60 a day · Autonomous: yes · 200 a day.
- Schedule: Create events `outlook.event-create` — A new event on a calendar of the account. Alone it reaches nobody but the calendar's readers; inviting people is a permission of its own, by who they are. Careful: yes · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.
- Schedule: Answer invitations (accept, tentative, decline) `outlook.event-respond` — Accepting, tentatively accepting or declining an invitation, with an optional comment. With send\_response, Exchange mails the answer to the organizer, who may be outside the company. Careful: yes · 100 a day · Trusting: yes · 300 a day · Autonomous: yes · 1,000 a day.

Careful: runs freely 17, ask me first 6, not included 4.
Trusting: runs freely 19, ask me first 8.
Autonomous: runs freely 23, ask me first 4.

Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

## A few calls, classified by the plugin

38 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. [The 38 calls, as code](https://github.com/vaubaan/gateway/blob/main/plugins/outlook/src/examples.ts).

- `outlook__describe_zones {}`
  - the plugin sees: `outlook.mailbox[alice~contoso.example].R`
  - the catalog answers: Read the mailbox structure (folders, message lists, attachment lists) `outlook.read-mailbox`
  - a Careful mission: yes
- `outlook__create_draft {"subject":"Note","body":"for me"}`
  - the plugin sees: `outlook.mailbox[alice~contoso.example].draft.W`, `outlook.mailbox[alice~contoso.example].to-zone[self].W`
  - the catalog answers: Create a draft or a reply draft (any recipient) `outlook.draft-write`, Create a draft addressed to the mailbox itself only (or to nobody yet) `outlook.draft-to-zone-self`
  - a Careful mission: yes
- `outlook__send_message {"to":["alice@contoso.example"],"subject":"Report","body":"done"}`
  - the plugin sees: `outlook.mailbox[alice~contoso.example].send-zone[self].W`
  - the catalog answers: Send a message to the mailbox itself only `outlook.send-to-zone-self`
  - a Careful mission: yes
- `outlook__move_message {"message_id":"AAMkAGI2TG93AAA","folder":"archive"}`
  - the plugin sees: `outlook.mailbox[alice~contoso.example].message[AAMkAGI2TG93AAA].W`
  - the catalog answers: Move a message, mark it read or unread, flag it, set its categories `outlook.message-organize`
  - a Careful mission: yes
- `outlook__create_event {"subject":"Focus","start":"2026-11-05T10:00:00Z","end":"2026-11-05T11:00:00Z"}`
  - the plugin sees: `outlook.calendar[default].event.W`
  - the catalog answers: Create events `outlook.event-create`
  - a Careful mission: yes
- `outlook__send_message {"to":["carol@customer.example"],"subject":"Report","body":"done"}`
  - the plugin sees: `outlook.mailbox[alice~contoso.example].send-zone[allowlist].W`
  - the catalog answers: Send a message to pre-approved external contacts (allowlist) `outlook.send-to-zone-allowlist`
  - a Careful mission: no

## Anything else

A call no permission covers touches `outlook.uncategorized-write` instead of slipping through. No macro-action holds it; a person ticks it knowingly.

| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
| --- | --- | --- | --- | --- |
| Uncategorized Outlook write `outlook.uncategorized-write`: Catch-all for writes no entry above covers; none of the offered tools reaches it today. A tool Microsoft adds is not offered until it is modelled. In no macro-action. | Repairable, at a price (costly to undo) | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |

Left out on purpose — tools of the service this plugin does not expose:

- `outlook__delete_message`: No deletion of mail is offered, not even a move to Deleted Items; tidying stops at moving a message between folders.
- `outlook__forward_message`: Forwarding sends a message's content at once to recipients unknown before the call; the agent writes a draft and sends it with send\_draft instead.
- `outlook__reply_message`: Replying sends at once to whoever the original names, unknown before the call; the agent writes a reply draft and sends it with send\_draft instead.
- `outlook__reply_all_message`: Replying to all sends at once to every recipient of the original, unknown before the call; the agent writes a reply draft and sends it with send\_draft instead.

## Tools

23 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

| Tool | What it does | Usually touches |
| --- | --- | --- |
| `outlook__describe_zones` | Read the mailbox zoning | `outlook.read-mailbox` |
| `outlook__list_folders` | List mail folders | `outlook.read-mailbox` |
| `outlook__search_messages` | Search messages | `outlook.read-mailbox`, `outlook.read-from-zone-automated`, `outlook.read-from-zone-internal`, `outlook.read-from-zone-known-external`, `outlook.read-from-zone-unknown`, `outlook.read-drafts`, `outlook.bulk-read` |
| `outlook__get_message` | Read a message | `outlook.read-mailbox`, `outlook.read-from-zone-unknown` |
| `outlook__list_attachments` | List the attachments of a message | `outlook.read-mailbox`, `outlook.read-from-zone-unknown` |
| `outlook__get_attachment` | Download an attachment | `outlook.read-mailbox`, `outlook.read-from-zone-unknown` |
| `outlook__list_drafts` | List drafts | `outlook.read-drafts` |
| `outlook__create_draft` | Write a draft | `outlook.draft-write`, `outlook.draft-to-zone-self`, `outlook.draft-to-zone-internal`, `outlook.draft-to-zone-allowlist` |
| `outlook__create_reply_draft` | Write a reply draft | `outlook.draft-write`, `outlook.draft-to-zone-internal` |
| `outlook__send_message` | Send a message | `outlook.send-to-zone-self`, `outlook.send-to-zone-internal`, `outlook.send-to-zone-allowlist`, `outlook.send-to-zone-external` |
| `outlook__send_draft` | Send a draft | `outlook.send-to-zone-internal` |
| `outlook__move_message` | Move a message | `outlook.message-organize` |
| `outlook__update_message` | Mark, flag or categorise a message | `outlook.message-organize` |
| `outlook__create_folder` | Create a mail folder | `outlook.folder-create` |
| `outlook__list_calendars` | List the calendars | `outlook.calendar-list` |
| `outlook__list_events` | List events | `outlook.event-read` |
| `outlook__search_events` | Search events | `outlook.event-read` |
| `outlook__get_event` | Read an event | `outlook.event-read` |
| `outlook__suggest_time` | Suggest a time | `outlook.free-busy-read` |
| `outlook__create_event` | Create an event | `outlook.event-create`, `outlook.invite-internal`, `outlook.invite-external` |
| `outlook__update_event` | Change an event | `outlook.event-change`, `outlook.invite-internal`, `outlook.notify-guests` |
| `outlook__delete_event` | Delete an event | `outlook.event-delete`, `outlook.notify-guests` |
| `outlook__respond_to_event` | Answer an invitation | `outlook.event-respond` |

## Connecting an account

**3 of 3 · you sign in through an OAuth broker** — `oauth2 · broker · microsoft`

**Before anyone connects** (an administrator, once):

- The instance must be enrolled with an OAuth broker serving the service `microsoft`; an administrator sets it up once, for everyone on the instance. Until then Outlook reads "not configured" on the connect screen.
- Two ways to get one: enrol with a broker someone else operates, or run the published broker image with your own client at the service.
- The gateway's pages tell whether the broker is attested.
- OAuth provider `microsoft`; scopes asked: `openid`, `email`, `profile`, `offline_access`, `User.Read`, `Mail.ReadWrite`, `Mail.Send`, `Calendars.ReadWrite`. [Your own OAuth broker](/docs/operations/oauth-broker)

Outlook signs in through the client of an OAuth broker: nothing is created or pasted, the person signs in at Outlook and allows the gateway.

Disconnecting: In your Microsoft account, under Privacy → App access (personal accounts) or My Apps → manage apps (work accounts), remove the gateway's app.

## Health

2 gateways run this plugin (over the last 90 days).

| Version | Gateways | Calls | Success | Validated |
| --- | --- | --- | --- | --- |
| `0.1.0` | 2 | no call yet | — |  |

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly ([what they mean](/plugins/health)). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

## Links

- [Connect a Outlook account](/plugins/outlook#connect)
- [How Outlook is modelled](https://github.com/vaubaan/gateway/blob/main/docs/handbook/services/outlook.md)
- [The catalog, as code](https://github.com/vaubaan/gateway/blob/main/plugins/outlook/src/risk-catalog.yaml)
- [The plugin source](https://github.com/vaubaan/gateway/tree/main/plugins/outlook)
- The page: [/plugins/outlook](/plugins/outlook)
