#8869·chatwoot

Office 365 Mailbox - Not Created

Author: jordan26Created Feb 6, 2024Updated Sep 16, 2026
Labelsseverity: 2self-hosted📮 channel/microsoft-emailBug

Describe the bug

Same error as another here, but their case is closed, re-opening. Whenever I try to add an Office 365 mailbox after logging in and authorizing the account, I'm redirected to the dashboard. No inbox is created.

Checking the log, I can see the following message: undefined method 'downcase' for nil:NilClass

I followed all instructions here: https://www.chatwoot.com/docs/self-hosted/configuration/features/email-channel/azure-app-setup

To Reproduce

  1. Access the new inbox screen
  2. Select Email > Microsoft
  3. Add mailbox address (the email address of the inbox I set up - [email protected])
  4. I get the office login screen, I use the email/password above. I get an unverified message, but I then have my admin login which is who created the App in Azure ([email protected]). Signed in
  5. Authenticate / approve

Expected behavior

Proceed to Add Agent step

Environment

Linux VM

Cloud Provider

Azure

Platform

Browser

Operating system

Ubuntu 20.04

Browser and version

Firefox 122.0

Docker (if applicable)

No response

Additional context

Note: I replaced my actual domain with mydomain.co.uk

bash
Feb 06 17:15:57 chatwoot chatwoot-web.1[230693]: OAuth2::AccessToken.from_hash: `hash` contained more than one 'token' key (["access_token", "id_token"]); using "access_token".

Feb 06 17:15:57 chatwoot chatwoot-web.1[230693]: E, [2024-02-06T17:15:57.922556 #230693] ERROR -- : [18faae79-e994-41d7-b921-81af1c7c62c3] undefined method `downcase' for nil:NilClass\

Feb 06 17:15:57 chatwoot chatwoot-web.1[230693]: I, [2024-02-06T17:15:57.923180 #230693] INFO -- : [18faae79-e994-41d7-b921-81af1c7c62c3] Redirected to https://chatwoot.mydomain.co.uk/

Feb 06 17:15:57 chatwoot chatwoot-web.1[230693]: I, [2024-02-06T17:15:57.923496 #230693] INFO -- : [18faae79-e994-41d7-b921-81af1c7c62c3] Completed 302 Found in 182ms (ActiveRecord: 0.0ms | Allocations: 4091)

Supported account types Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant)

image

image