Exchange Connection Problems

Fix Access Denied When Opening an Exchange Online Mailbox

Olivia MillerOlivia Miller Nov 14, 2026 869 views

Question details

Restore access to Exchange Online mailboxes that show Access Denied after a new primary SMTP domain was added.

Product
Exchange Online and Outlook on the web
Device & OS
not provided
Scenario
A hybrid Exchange organization has users whose primary SMTP addresses use a newly added domain.
Observed behavior
Affected users receive Access Denied and OwaADObjectNotFoundException in Outlook on the web or Outlook, while Outlook mobile continues to work.
Before you start

Identify an affected account, a working account using the original domain, and whether each mailbox was created on-premises and migrated or created directly in Exchange Online. Have an Exchange administrator account available for the on-premises Exchange Management Shell and Exchange Online PowerShell.

Solution 1Recommended

Check mailbox objects and domains in the hybrid environment

Use this diagnostic approach to compare affected and working mailboxes and identify object or configuration differences.

1
Check the remote mailbox

On the on-premises Exchange server, open Exchange Management Shell and run Get-RemoteMailbox -Identity "user@example.com" for an affected user. If the mailbox was created directly in Exchange Online, the absence of a remote mailbox may reflect how it was provisioned.

2
Check the cloud mailbox and user

Connect to Exchange Online PowerShell with Connect-ExchangeOnline, then run Get-Mailbox -Identity "user@example.com" and Get-User -Identity "user@example.com". Review the returned identity and primary SMTP address, and note any errors.

3
Compare affected and working accounts

Run the same applicable commands for a mailbox using the original domain. Compare primary SMTP addresses, UPNs, mailbox provisioning paths, and remote mailbox attributes; also check whether a mailbox created directly online has the same issue.

4
Review domain and hybrid changes

In the Microsoft 365 admin center, open Settings > Domains and check the status of the new domain. Review recent hybrid configuration changes with your Exchange administrator, including the new SMTP domain and MX change.

Different domains can be valid: A user's UPN and primary SMTP address do not necessarily have to match. Compare the configuration and investigate discrepancies rather than changing the UPN solely to make the domains match.
Free Microsoft Office alternative

Use WPS Office for Documents While Exchange Access Is Investigated

WPS Office is a free, lightweight alternative for working with Office documents through a familiar interface. Its Microsoft Office format compatibility can help you move existing files into your workflow, but it does not fix Exchange Online mailbox access.

Continue working on documents while an administrator investigates mailbox accessOpen and edit Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, and presentationsMove existing Office files into a lightweight, free workspace
microsoft office alternative - wps office

Frequently Asked Questions

Why does Outlook mobile work when Outlook on the web shows Access Denied?

Mobile and web clients can use different access paths, so a working mobile app does not establish that the mailbox configuration is correct. Compare the affected mailbox objects and domains in Exchange Online PowerShell and the on-premises Exchange Management Shell.

Do the UPN and primary SMTP address have to use the same domain?

No. They can use different domains. Use Get-User and Get-Mailbox in Exchange Online PowerShell to inspect the account, and compare its configuration with a working mailbox before making changes.

Where can I check whether Exchange Online is enabled for a user?

In the Microsoft 365 admin center, go to Users > Active users, select the account, and open Licenses and apps. Check both the assigned license and the Exchange Online service setting.

What should I do if private browsing does not resolve the error?

Check the mailbox provisioning path and compare the on-premises and cloud objects. If the issue persists, use Help & support in the Microsoft 365 admin center and provide the error details and relevant diagnostic results.