Configuring Office 365 Email
This setup allows Unified Dashboard to send emails automatically from a specific Microsoft 365 mailbox (your “From” address) using Microsoft Graph and app-only authentication.
1. Prerequisites (IT Admin Collection)
Before you begin, ensure you have collected the following values from your IT or Microsoft 365 administrator:
- Tenant ID: Your organization’s Microsoft 365 directory ID.
- Client ID: The App (client) ID of the Azure/Entra App Registration.
- Client Secret: The secret value created for the app (ensure this is copied immediately upon creation).
- User Email: The mailbox address for outgoing mail (e.g.,
[email protected]). - User ID: The identifier for the mailbox.
Note: We highly recommend using the mailbox user’s Object ID for long-term stability.
2. Microsoft Entra Setup (IT Admin Steps)
- Create App Registration: In the Microsoft Entra admin center, create a new App registration.
- Generate Secret: Create a Client secret for the application.
- Configure Permissions: * Navigate to Microsoft Graph → Application permissions.
- Select
Mail.Send.
- Admin Consent: Click Grant admin consent for your tenant to activate permissions.
3. Security Best Practice: Restrict App Access
By default, the Mail.Send permission allows the app to send mail from any mailbox in the tenant.
Recommendation: Ask your IT admin to restrict the app to only the intended sender mailbox. This is typically achieved via an Exchange Online "Application Access Policy" (approved-mailbox scoping).
4. Configuration in Unified Dashboard
- Navigate to Settings → Email settings → Office 365 setup (select the correct bot).
- Input the following values:
- User Email
- Client ID
- Tenant ID
- Client Secret Key
- User ID (Object ID preferred)
- Click Submit.
Note: Upon a successful save, the setup will become locked and fields will be disabled to prevent accidental changes.
5. Updates and Secret Rotation
If a value changes (such as an expired Client Secret) or a correction is needed:
- Return to the Office 365 setup menu.
- Click Reset.
- Re-enter the updated values and click Submit.
6. Troubleshooting Common Issues
| Error Code | Potential Cause | Resolution |
|---|---|---|
| 401 Unauthorized | Incorrect or expired Client Secret. | Recreate the secret in Entra, then Reset and re-submit in the dashboard. |
| 403 Forbidden | Missing permissions or admin consent. | Verify Mail.Send is granted and consented. Check for tenant-level restriction policies. |
| 404 Not Found | Incorrect User ID. | Ensure you are using the Object ID copied directly from the user profile in Entra. |
| Mailbox Issues | Provisioning error. | Ask the IT admin to validate that the mailbox is active in Exchange Online. |
Updated about 15 hours ago
