This guide explains how to register an application in Microsoft Entra ID and configure it for Outlook OAuth integration.
This setup allows your application to securely connect and manage customer mailboxes using Microsoft services.
Prerequisites
Before you begin, ensure you have:
An active Azure account
Minimum role: Application Developer
Access to a tenant (directory)
You can use the default directory
Step 1: Register a New Application
Sign in to the Microsoft Entra Admin Center
Go to: Entra ID → App registrations → New registration
Fill in the details:
Name:
Enter a meaningful Name for your app.Supported account types:
Choose based on your use case:Single tenant → Only your organization
Multitenant → Multiple organizations
Multitenant + Personal accounts (Recommended) → Org + Outlook/Hotmail users
Redirect URI:
Set it to: https://<your-api-domain>/oauth/outlook/callbackReplace <your-api-domain> with your actual domain (remove the angle brackets). For example, if your API domain is api.example.com, the Redirect URI should be https://api.example.com/oauth/outlook/callback.
Click Register
Step 2: Copy Client ID
After registration:
Go to Overview
Copy the Application (Client) ID
Paste the Client ID into the WeConnect Admin Panel under Whitelabel Setup → More Settings → Integrations → Outlook/Microsoft.
Step 3: Create Client Secret
Go to:
Certificates & secrets → Client secretsClick New client secret
Add a description and choose expiry
Click Create
Copy the Secret Value
Paste the Secret Value into the Client Secret field in the WeConnect Admin Panel under Whitelabel Setup → More Settings → Integrations → Outlook/Microsoft .
Step 4: Configure API Permissions
Go to:
API permissions → Add a permissionSelect:
Microsoft Graph
Delegated permissions
Add the following permissions:
openid
Mail.ReadWrite
Mail.Send
offline_access
User.Read
Click Add permissions
