Microsoft 365 / Outlook



Zielgruppe: Mandant, Treuhänder, IT
Feature: ab Plan Professional (Entitlement microsoft365)
In 60 Sekunden
| Frage | Antwort |
|---|---|
| Was ist Mandanten-Setup? | Sync-Regeln + Ihre Azure-App für diesen Mandanten (MND-…) |
| Was ist das nicht? | Die Outlook-Anmeldung — die passiert pro Firma im Hub |
| Wo liegen Secrets? | Verschlüsselt in der LIRENO-Datenbank — nicht in einer Mandanten-.env |
Drei Ebenen
- LIRENO-Betrieb — fester OAuth-Callback der API
- Mandant — Setup → Microsoft 365 (Client-ID, Secret, Policy)
- Firma — Hub → Verbinden (Outlook-Login)
Merksatz: Setup = Vorbereitung pro Mandant. Hub = Anmeldung pro Firma.
Schritt A — Azure-App (Microsoft Entra)
- Neue App-Registrierung
- Name z. B.
M365-4-LIRENO - Kontotyp: Single tenant (typisch)
- Umleitungs-URI: Plattform Web (nicht SPA)
- URL exakt wie in LIRENO angezeigt:
Dev:https://api.dev.lireno.ch/api/v1/integrations/microsoft365/oauth/callback
Prod:https://api.lireno.ch/api/v1/integrations/microsoft365/oauth/callback
Danach:
| Schritt | Aktion |
|---|---|
| 1 | Application (client) ID kopieren |
| 2 | Client secret erzeugen und Wert sofort kopieren |
| 3 | Graph delegated: openid, profile, email, offline_access, Contacts.ReadWrite |
| 4 | Administratorzustimmung erteilen |
| 5 | Verzeichnis-ID (Tenant) notieren |
Schritt B — In LIRENO speichern
Pfad: Setup → Microsoft 365
- Sync-Policy (Import/Export, Intervall)
- Client-ID, Secret, Redirect URI, Tenant-ID eintragen
- Microsoft-Setup speichern
- Secret-Feld danach leer lassen = gespeichertes Secret behalten
Die angezeigte Redirect URI in Azure muss mit dem Eingabefeld und Entra übereinstimmen.
Schritt C — Outlook pro Firma
Pfad: Integrations-Hub → Microsoft 365
- Geschäftseinheit wählen
- Verbinden → Microsoft-Login (Authenticator ok)
- Hub → Outlook Kontakte → Synchronisieren
Checkliste
- [ ] Plan Professional oder Enterprise
- [ ] Entra-App mit Plattform Web
- [ ] Redirect URI exakt = LIRENO-Callback
- [ ] Client-ID in LIRENO = Anwendungs-ID derselben Entra-App
- [ ] Secret gespeichert
- [ ] Hub → Verbinden erfolgreich
- [ ] Kontakte sync getestet
