Autodiscover Error 500: Ghost ImmutableID mismatch between Entra Portal and Graph API after migration

Muhammet Dilber 50 Reputation points
2026-02-27T20:42:29.39+00:00

Hi everyone,

I’m struggling with a persistent issue regarding migrated users from Exchange On-Premise to Exchange Online.

The Problem:

  • OWA and Outlook Mobile: Working perfectly.

Outlook Desktop: Fails during setup with Error 500: The email address can't be found.

Microsoft Connectivity Analyzer: Confirms the Error 500, even though the request reaches the correct Exchange Online backend.

The Technical Discrepancy: This is the most confusing part:

Entra ID Portal: Shows a value for On-premises immutable ID.

Microsoft Graph API (Get-MgUser): Returns the OnPremisesImmutableId attribute as NULL.

Microsoft Graph API (Update-MgUser): When I try to manually clear or set the value, I get a 400 BadRequest.

Legacy MSOnline: Connect-MsolService is forbidden (403), so I cannot use the old module to force clear the anchor.

Current State: The accounts are marked as "In Cloud," and Directory Sync has been disabled for a long time. It seems like a "ghost" attribute exists in the Portal's UI/Database that isn't accessible via Graph, causing Autodiscover V2 to fail.

Question: I've heard about a "Backend Force Clean / Re-provisioning" process that Microsoft Support can perform. Has anyone successfully triggered this or found a way to resolve this identity desync without a support ticket?Hi everyone,

I’m struggling with a persistent issue regarding migrated users from Exchange On-Premise to Exchange Online.

The Problem:

OWA and Outlook Mobile: Working perfectly.

Outlook Desktop: Fails during setup with Error 500: The email address can't be found.

Microsoft Connectivity Analyzer: Confirms the Error 500, even though the request reaches the correct Exchange Online backend.

The Technical Discrepancy: This is the most confusing part:

Entra ID Portal: Shows a value for On-premises immutable ID.

Microsoft Graph API (Get-MgUser): Returns the OnPremisesImmutableId attribute as NULL.

Microsoft Graph API (Update-MgUser): When I try to manually clear or set the value, I get a 400 BadRequest.

Legacy MSOnline: Connect-MsolService is forbidden (403), so I cannot use the old module to force clear the anchor.

Current State: The accounts are marked as "In Cloud," and Directory Sync has been disabled for a long time. It seems like a "ghost" attribute exists in the Portal's UI/Database that isn't accessible via Graph, causing Autodiscover V2 to fail.

Question: I've heard about a "Backend Force Clean / Re-provisioning" process that Microsoft Support can perform. Has anyone successfully triggered this or found a way to resolve this identity desync without a support ticket?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.