After having deleted the users (and even having "permanently" deleted them from the recently deleted list... When I try to re-create accounts for these users I get an "Object Already Exists" for "User Principal Nam" error message.
This appears to have become a problem in the recent past as we have been working with ADB2C for over 4 years without having encountered this before.
All efforts to use powershell cmds to find the existence of the UPN have failed. Meaning the "lock" is somewhere deep in the internals of AD B2C.
Here is an audit log:
Audit log for re-create user error:
[
{
"id": "Directory_f9df5421-425a-4294-a338-ef14c000af60_52L0M_313889353",
"category": "UserManagement",
"correlationId": "f9df5421-425a-4294-a338-ef14c000af60",
"result": "failure",
"resultReason": "Microsoft.Online.Workflows.ObjectAlreadyExistsException",
"activityDisplayName": "Add user",
"activityDateTime": "2025-06-05T18:32:21.0446385+00:00",
"loggedByService": "Core Directory",
"initiatedBy": {
"user": {
"id": "2058a99c-0b79-4662-9d38-b1b149da032d",
"displayName": null,
"userPrincipalName": "anemitoff_omiazure.com#EXT#@omiprismlogin.onmicrosoft.com",
"ipAddress": "108.53.29.106",
"homeTenantId": null,
"homeTenantName": null
}
},
"userAgent": null,
"targetResources": [
{
"id": "7dd9b190-1f50-4dc4-954d-f70d1df3b029",
"displayName": null,
"type": "User",
"userPrincipalName": "******@omiprismlogin.onmicrosoft.com",
"groupType": null,
"modifiedProperties": [
{
"displayName": "AccountEnabled",
"oldValue": "[]",
"newValue": "[true]"
},
{
"displayName": "CreationType",
"oldValue": "[]",
"newValue": "[\"NameCoexistence\"]"
},
{
"displayName": "DisplayName",
"oldValue": "[]",
"newValue": "[\"Sharrell Gilchrist\"]"
},
{
"displayName": "MailNickname",
"oldValue": "[]",
"newValue": "[\"7dd9b190-1f50-4dc4-954d-f70d1df3b029\"]"
},
{
"displayName": "PasswordPolicies",
"oldValue": "[]",
"newValue": "[\"DisablePasswordExpiration, DisableStrongPassword\"]"
},
{
"displayName": "StsRefreshTokensValidFrom",
"oldValue": "[]",
"newValue": "[\"2025-06-05T18:32:20Z\"]"
},
{
"displayName": "UserPrincipalName",
"oldValue": "[]",
"newValue": "[\"******@omiprismlogin.onmicrosoft.com\"]"
},
{
"displayName": "UserType",
"oldValue": "[]",
"newValue": "[\"Member\"]"
},
{
"displayName": "Included Updated Properties",
"oldValue": null,
"newValue": "\"AccountEnabled, CreationType, DisplayName, MailNickname, PasswordPolicies, StsRefreshTokensValidFrom, UserPrincipalName, UserType\""
},
{
"displayName": "MethodExecutionResult.",
"oldValue": null,
"newValue": "\"Microsoft.Online.Workflows.ObjectAlreadyExistsException\""
}
]
}
],
"additionalDetails": [
{
"key": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0"
}
]
}
]