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.
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
2. Client secret
Certificates & secrets → New client secret → copy the Value immediately (not shown again) → field App (Client) Secret.
3. Graph permissions
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_idAzure AD Tenant IDGUID der Tenant-Registration, z.B. 11111111-2222-3333-4444-555555555555.
- microsoft_app_idApp (Client) IDGUID der Bot-Framework App-Registration.
- microsoft_app_passwordApp (Client) SecretRotierbar im Azure Portal → App Registration → Certificates & secrets.
- facilitation_organizer_mailboxOrganisator-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_idAzure 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_groupAzure Resource GroupName der Resource Group für Microsoft.BotService/botServices. Leer lassen für Registration-only-Modus.
Show all 9 setup fields
- azure_regionAzure RegionARM-Location der Bot-Ressourcen, für Azure Bot Services üblicherweise 'global'. Leer lassen für Registration-only-Modus.
- azure_sp_client_idARM 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_secretARM 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
- none
- none
- graph
- none
- none
- network
- login.microsoftonline.comgraph.microsoft.commanagement.azure.comsmba.trafficmanager.net
- filesystem
- no
- secrets
- yes
Dependencies and capabilities
- microsoft365.graph@1teamsProvisioner@1facilitation.followup@1