Microsoft 365 Connector

@idaria/integration-microsoft365m365

Gemeinsamer Microsoft-Graph-Layer (Bot-Framework App-Registration) für alle Microsoft-365-Konsumenten. Stellt den Kernel-Service 'microsoft365.graph' (Microsoft365Accessor) bereit — konsumiert vom Teams-Channel und den Kalender-Tools.

integration · communication

Setup guide

Get Microsoft 365 credentials

Register an app in Microsoft Entra ID (Azure AD) and grant Microsoft Graph permissions. You need three values: Tenant ID, App (Client) ID, App (Client) Secret. This app is also reused by the Teams channel.

1. Register the app

  1. Azure Portal → Microsoft Entra ID → App registrations → New registration → name it → Register.
  2. Overview → copy Directory (tenant) ID → field Azure AD Tenant ID.
  3. Overview → copy Application (client) ID → field App (Client) ID.

2. Client secret

Certificates & secrets → New client secret → copy the Value immediately (not shown again) → field App (Client) Secret.

3. Graph permissions

  1. API permissions → Add a permission → Microsoft Graph → Application permissions.
  2. Add what your use case needs (e.g. Calendars.Read, Mail.Read, User.Read.All, Files.Read.All).
  3. Click Grant admin consent for <Tenant> (requires an admin).

For the Teams provisioning capability (teamsProvisioner@1) additionally add: Application.ReadWrite.OwnedBy, AppCatalog.ReadWrite.All, TeamsAppInstallation.ReadWriteForTeam.All, TeamsAppInstallation.ReadWriteAndConsentForTeam.All, Team.ReadBasic.All.

To install an agent into a group chat (since 0.7.0) also add TeamsAppInstallation.ReadWriteForChat.All and TeamsAppInstallation.ReadWriteAndConsentForChat.All. Not the …SelfForChat.All variant — that one only lets an app install itself, while the provisioner installs the per-agent app it generated.

The two …AndConsent… roles are not optional extras: the generated app packages declare seven resource-specific permissions, and an install that cannot consent to them is refused with 400 ResourceSpecificPermissionsMismatch (since 0.8.2 the connector sends the consent itself — the role is the half you grant).

Listing the teams an agent can be installed into (listTeams, since 0.8.0) needs no new permission: it reuses Team.ReadBasic.All from the list above. Listing CHATS is a different story — see the note at the end of the sign-in section below.

4. One-time admin sign-in for catalog publishing

Publishing a Teams app package (POST /appCatalogs/teamsApps) is the one step Microsoft Graph does not support with application permissions — the reference says "Not supported." for that verb. idaria therefore asks a tenant administrator to sign in once per tenant. Every agent provisioned afterwards publishes automatically; there is no manual upload per agent.

idaria registers a minimal helper app for this itself (public client, no client secret, one delegated permission: AppCatalog.ReadWrite.All). Start the sign-in from the idaria UI, open the shown URL, enter the code, and approve for your organization. If the sign-in page says approval is required, an admin must first open the consent link idaria displays.

Note: if your tenant blocks the OAuth device code flow via Conditional Access ("authentication flows"), the sign-in fails. Add an exception for the idaria publisher app — it holds two delegated permissions and no secret.

One more sign-in as of 0.8.0

The sign-in now also asks for the delegated Chat.ReadBasic, so idaria can OFFER the administrator's chats as install targets instead of asking an operator to paste a chat id. Microsoft Graph has no tenant-wide application-permission route for listing chats at all — bare GET /chats is delegated-only and the application form is the per-user GET /users/{id}/chats — so this is the only way to build the list.

Chat.ReadBasic reads names and members of chats, never messages, and needs no admin consent of its own. But an existing credential cannot acquire it by refreshing: an administrator who signed in before 0.8.0 has to sign in once more before the chat picker works. Publishing keeps working with the old credential in the meantime; only the chat list reports the gap, and it reports it as a typed "sign in again" rather than a permission error.

5. Follow-ups for facilitators (optional, since 0.9.0)

A native facilitator can send the confirmed protocol and schedule the follow-up meetings a group agreed on (facilitation.followup@1). It does so from ONE mailbox you name in the field Organisator-Postfach für Facilitation — a licensed user mailbox created for this purpose, not a person's own (a shared mailbox is unproven). Leave the field empty and the capability answers "not configured"; nothing else changes.

An administrator has to grant two roles first: Calendars.ReadWrite (free/busy lookup and creating the invitation) and Mail.Send (protocol mail). Grant them with Exchange Online RBAC for Applications, scoped to the organiser mailbox — four PowerShell steps, in docs/facilitation-followup.md. Do NOT also grant the same permissions in Entra ID: that grant is tenant-wide and would undo the scope. The connector itself only ever calls the organiser mailbox and never reads mail or calendar contents. Free/busy and the Teams invitation were checked live with such a scope; a shared mailbox was not.

Extending an existing app registration requires renewed admin consent: click Grant admin consent for <Tenant> again. If Graph still answers 403 afterwards, grant the app roles via REST appRoleAssignments and restart the middleware — portal/CLI consent sometimes silently fails to apply.

App-only (client-credentials) flow: no user sign-in, access is tenant-wide within the granted permissions.

Setup fields

The operator fills these in when installing the plugin.

  • microsoft_tenant_idstring, required
    Azure AD Tenant IDGUID der Tenant-Registration, z.B. 11111111-2222-3333-4444-555555555555.
  • microsoft_app_idstring, required
    App (Client) IDGUID der Bot-Framework App-Registration.
  • microsoft_app_passwordsecret, required
    App (Client) SecretRotierbar im Azure Portal → App Registration → Certificates & secrets.
  • facilitation_organizer_mailboxstring, optional
    Organisator-Postfach für FacilitationPostfach, aus dem native Facilitatoren Protokolle versenden und Folgetermine anlegen (am besten ein eigens angelegtes, lizenziertes Benutzerpostfach). Leer lassen, wenn Facilitatoren weder Mail noch Kalender nutzen sollen.
  • azure_subscription_idstring, optional
    Azure Subscription IDGUID der Azure-Subscription, in der die Azure-Bot-Ressourcen angelegt werden. Leer lassen für Registration-only-Modus (kein automatisches Bot-Provisioning).
  • azure_resource_groupstring, optional
    Azure Resource GroupName der Resource Group für Microsoft.BotService/botServices. Leer lassen für Registration-only-Modus.
Show all 9 setup fields
  • azure_regionstring, optional
    Azure RegionARM-Location der Bot-Ressourcen, für Azure Bot Services üblicherweise 'global'. Leer lassen für Registration-only-Modus.
  • azure_sp_client_idstring, optional
    ARM Service Principal Client IDClient-ID eines dedizierten Service Principals für management.azure.com. Leer lassen, um die Bot-Framework-App (App (Client) ID + Secret) für ARM wiederzuverwenden.
  • azure_sp_client_secretsecret, optional
    ARM Service Principal Client SecretClient-Secret des dedizierten ARM Service Principals. Leer lassen, um das App (Client) Secret der Bot-Framework-App wiederzuverwenden.

Permissions

This is everything the plugin is allowed to access once it is installed.

memory
readsnone
writesnone
graph
readsnone
writesnone
network
outboundlogin.microsoftonline.comgraph.microsoft.commanagement.azure.comsmba.trafficmanager.net
filesystem
scratchno
secrets
runtime_writeyes

Dependencies and capabilities

Provides
microsoft365.graph@1teamsProvisioner@1facilitation.followup@1

Versions

VersionCoreSizePublishedsha256Download
v0.13.2latest>=1.78.0 <2.0358.2 KB4 Dec 20261a4bde4ef2bd….zip
v0.13.1>=1.78.0 <2.0354.9 KB3 Dec 202622f0df66483a….zip
v0.13.0>=1.78.0 <2.0348.5 KB30 Nov 202690ac1ab4c935….zip