Connect Microsoft 365 Account
connect_m365_accountConnect a Microsoft 365 account (or add another one, or sign one in again). Call again after you've authenticated at microsoft.com/devicelogin to finish the connection. Pass include_channel_messages: true to also read Teams channel messages and search them — that permission needs an administrator of your Microsoft 365 organization; without that approval the sign-in is refused and the account keeps its current access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Ignored; kept for older clients. | |
| account_type | No | "work" (default): a work or school Microsoft 365 account — mail, calendar, contacts, Teams. "personal": an Outlook.com / Hotmail / Live account — mail, calendar and contacts only (Microsoft has no Teams chats or directory for personal accounts, and asking for them makes Microsoft refuse the sign-in as an 'expired code'). Ask the person which one it is when unsure. | |
| include_channel_messages | No | Also request access to Teams channel messages and message search. Needs an administrator of the Microsoft 365 organization; without that approval this sign-in is refused and the account keeps its current access. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| message | No |