Solution:
Root Cause: Cloud-Only vs. On-Premises Attribute Collision
When a cloud-only user account is created directly in the Microsoft 365 Admin Center or Entra ID portal, it is assigned a cloud-managed
proxyAddresses array. If an administrator later creates an on-premises Active Directory user with the same email alias and attempts to sync it, Entra Connect fails because cloud-only objects take precedence and block auto-matching if immutable keys do not line up.
# Diagnostic Verification:
1. Connect to Microsoft Graph PowerShell SDK:
powershell
Connect-MgGraph -Scopes "User.ReadWrite.All"
2. Query Entra ID for the object possessing the conflicting proxy address:
powershell
Get-MgUser -Filter "proxyAddresses/any(c:c eq 'smtp:user@company.com')" | Select-Object Id, DisplayName, UserPrincipalName, OnPremisesSyncEnabled
3. Confirm
OnPremisesSyncEnabled is empty/false, verifying the object is Cloud-Only.
# Step-by-Step Fix:
1. Option A: Match Cloud Account to On-Premises Account (Soft-Match):
Ensure the On-Premises AD user's UserPrincipalName or primary mail attribute matches the Cloud-Only user's UserPrincipalName exactly.Enable Soft-Matching in Entra Connect if disabled, then trigger a sync: powershell
Start-ADSyncSyncCycle -PolicyType Delta
2. Option B: Remove Conflicting Proxy Address from Cloud Account:
If the cloud-only user is a separate entity, remove the proxy address using Microsoft Graph: powershell
Update-MgUser -UserId "<Cloud-User-Object-ID>" -ProxyAddresses @("SMTP:user-cloud@company.com")
3. Re-sync On-Premises Object:
Force delta sync on the Entra Connect server to allow the on-premises user to sync cleanly.# Prevention & Long-Term Monitoring:
Provision all user accounts exclusively in On-Premises Active Directory if they fall within synced Organizational Units (OUs).