Variables
Creating the registration
- Microsoft Entra admin center → App registrations → New registration.
- Supported account types: Accounts in any organizational directory and personal Microsoft accounts unless you mean to restrict it.
- Redirect URI, platform Web:
https://your-host/integrations/microsoft/callback. It must matchMICROSOFT_INTEGRATION_REDIRECT_URIcharacter for character — a trailing slash is a different URI. - Certificates & secrets → New client secret. Copy the Value column immediately; it is shown once, and the Secret ID is not the secret.
- API permissions → Microsoft Graph → Delegated, then grant consent:
offline_access,User.Read,Mail.Read,Mail.Send,Files.ReadWrite.All,Calendars.ReadWrite,Chat.Read.
Check
Restart the backend, then Integrations → Outlook → Connect. The consent screen means the registration is right; anAADSTS error names what is wrong —
usually the redirect URI.