Microsoft no longer permits the use of username and password to retrieve emails from Outlook & Microsoft 365 accounts. They have deprecated the basic auth option. To enable the Outlook/Microsoft 365 email channel in your self-hosted instance, you must configure an OAuth app. This guide helps you set up an Entra ID App (formerly Azure Active Directory) and use the credentials in Chatwoot. By doing so, you can authenticate your Outlook/Microsoft 365 account as an email channel.Documentation Index
Fetch the complete documentation index at: https://developers.chatwoot.com/llms.txt
Use this file to discover all available pages before exploring further.
Register the app
For a more detailed guide on how to set up the Microsoft Identity platform, please refer to the here.

https://<your-instance-url>/microsoft/callback. Click on register, and your app will be created. You will see a screen as shown below.

AZURE_APP_ID in Chatwoot later.
Configure the application
To ensure proper functionality of Chatwoot, we need to configure the permissions and update the token configuration as follows.API permissions
Click on the “API Permissions” menu under the “Manage” section. By default, this will have User.Read permission. Click on the “Add permissions” button and add the following permissions from the Delegated permissions menu on Microsoft Graph APIs.- email: To view the user’s email address.
- profile: To view the name and picture etc.
- offline_access: To retrieve the emails even when you are not using the application.
- SMTP.Send, Mail.Send: Send emails using the SMTP AUTH when you reply to customers from the Chatwoot dashboard.
- IMAP.AccessAsUser.All, Mail.ReadWrite: Read and write access to mailboxes via IMAP.
- openid: Sign users in

Token Configuration
Now, let’s proceed to the Token Configuration to set up “optional claims”. Optional claims are a feature in Entra ID that enables you to specify additional pieces of information (claims) to include in the security tokens issued to the application. In Chatwoot, we use optional claims to minimize duplicate calls and retrieve some information in advance. Click on “Add optional claim” and add the following claims to the application.
Configure Client Secret
Go to the Certificates & Secrets section to create a Client Secret. Click on the “New Client Secret” button and provide a description. You can also select an expiry time.

AZURE_APP_SECRET in Chatwoot.
Configure environment variables in Chatwoot
After creating the Entra application, you need to configure the application credentials in Chatwoot. There are 2 variables that you need to configure, as shown in the steps above.- AZURE_APP_ID: As seen in the register the app step, use the Application (Client) ID here.
- AZURE_APP_SECRET: Use the value obtained in the step configuring the client secret.


