I made a mistake: I un-synced an OU of users in Azure AD Connect. Then "permanently deleted" them from Entra. No mailboxes were migrated.
Now, I have re-synched them in Azure AD Connect, but I cannot migrate their mailboxes because M365 has SoftDeletedMailUsers.
These are not Mailboxes. “Get-Mailbox -SoftDeletedMailbox” returns no results.
They are MailUsers. “Get-MailUser -SoftDeletedMailUser” returns a list.
Each user is listed twice:
[PS] C:\Windows\system32>Get-Recipient -Identity "******@organization.org" -IncludeSoftDeletedRecipients | FT ID, DisplayName
Id DisplayName
-- -----------
Soft Deleted Objects\1fa3f53a-000e-4d7d-97bc-c02cfbdc74c1 LastName, First
52a984d2-de24-4987-a020-14366be2d3dc 52a984d2-de24-4987-a020-14366be2d3dc
The soft deleted user's ExchangeGuid is the same for all soft deleted users, but the ArchiveGuid matches the On-Prem user's ArchiveGuid. The active user's ExchangeGuid and ArchiveGuid are both set to all zeroes:
[PS] C:\Windows\system32>Get-Recipient -Identity "******@ridetarc.org" -IncludeSoftDeletedRecipients | FT DisplayName, ExchangeGuid, ArchiveGuid
DisplayName ExchangeGuid ArchiveGuid
----------- ------------ -----------
Franklin, Darlene 1b2eaa95-0d64-4469-9fb2-d8f9----- 762a4110-b243-43d6-9bcb-53164a-----
52a984d2-de24-4987... 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000
I can’t remove the Soft Deleted MailUser:
[PS] C:\Windows\system32>Remove-MailUser -Identity "1fa3f53a-000e-4d7d-97bc-c02--" -PermanentlyDelete
Write-ErrorMessage : ||Unable to permanently delete mail enabled user. The mail enabled user has litigation hold or In-Place hold applied on it. Please remove the hold before trying to delete.
At C:\Users\PII\AppData\Local\Temp\tmpEXO_2usudler.ype\tmpEXO_2usudler.ype.psm1:1189 char:13
+ Write-ErrorMessage $ErrorObject
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Soft Deleted Ob...bc-c02cfbdc74c1:ADObjectId) [Remove-MailUser], RecipientTaskException
+ FullyQualifiedErrorId : [Server=DM6PR09MB--,RequestId=1c41917f-ff98-dbb3-c4e3-f16ae7e3--,TimeStamp=Fri, 22 Aug 2025 21:18:20 GMT],Write-ErrorMessage
There are no visible holds on the user (and no mailbox got migrated):
[PS] C:\Windows\system32>Get-MailUser -Identity "1fa3f53a-000e-4d7d-97bc-c02cfbd--" -SoftDeletedMailUser | FL ID, DisplayName, *Hold*
Id : Soft Deleted Objects\1fa3f53a-000e-4d7d-97bc-c02cfbdc74c1
DisplayName : LastName, FirstName
LitigationHoldEnabled : False
ComplianceTagHoldApplied : False
DelayHoldApplied : False
DelayReleaseHoldApplied : False
RetentionHoldEnabled : False
EndDateForRetentionHold :
StartDateForRetentionHold :
LitigationHoldDate :
LitigationHoldOwner :
InPlaceHolds : {}
Does anyone know how to fix this?