Clear all user metadata from SharePoint Online after a user is deleted from Office 365
I recently had a situation come up where a user's name was typed in incorrectly when their Office 365 account was provisioned. The error was propagated to SharePoint, and even though I corrected the error in Azure Active Directory and Office 365, the mistyped name persisted in SharePoint Online. In fact, I deleted the users account entirely from AD and Office 365 and recreated it with the same alias and the mistyped name persisted in SharePoint Online. There is no way, even using PowerShell to clear that metadata store or force an update. Please provide a way to force an update SharePoint Online user data from Office 365!
The root cause is fixed. We had a bug. Changes to AAD are background synced to SPO cache. We had an issue where it took far too long. It should happen in 24 hours. This is why you did not see the typo corrected in SPO.
Unfortunately the new user you created is a different object, even though the alias is the same. The AAD user associated with the name that has a typo is gone, so the SPO cached version will not be updated.
We understand that this is a problem in your case but it was caused by a bug and we don’t expect it to be so common for us to build a tool that would allow editing the SPO cache.