An Azure platform as a service offer that is used to deploy web and cloud applications.
Hi @Onpoint Data Techs,
Those users still have on-premises attributes (specifically onPremisesImmutableId) stamped on their Microsoft Entra ID objects. Because of this, Entra continues to treat them as directory-synchronized users, even though the original on-prem AD environment no longer exists.
This behavior is expected. As long as directory synchronization is enabled for the tenant, the onPremisesImmutableId attribute is protected and cannot be cleared via Graph Explorer, PowerShell, or the Entra portal.
Supported way to convert users to cloud-only
- Disable directory synchronization
If the original on-prem AD is permanently gone, you must disable directory sync for the tenant.
Follow Microsoft guidance: https://learn.microsoft.com/microsoft-365/enterprise/turn-off-directory-synchronization
Once synchronization is disabled and the change completes, the OnPremisesSyncEnabled flag will become false for the users.
- Clear the ImmutableId
After sync is fully disabled, you can clear the attribute using Microsoft Graph PowerShell:
Connect-MgGraph -Scopes "User.ReadWrite.All"
Update-MgUser -UserId ******@domain.com -OnPremisesImmutableId $null
After the onPremisesImmutableId value is removed, the account becomes a true cloud-only user.
If the attribute still cannot be cleared
Microsoft’s fallback approach is:
Delete the user from Entra ID
Permanently remove the account from the recycle bin
Recreate the account as a cloud-only user
Note that users cannot be converted individually while directory synchronization is enabled. The change must occur at the tenant level, unless Microsoft Support intervenes to manually clear the attribute.
Let us know if you need further assistance.