Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
On Windows, clear the old tenant sign-in state in this order:
- Disconnect the old work account from Windows
- Open Settings > Accounts > Access work or school.
- If the old organization account is listed, select it and choose Disconnect.
- Remove cached Office credentials
- Open Control Panel > User Accounts > Credential Manager.
- Under Windows Credentials, remove entries related to the old Office or Outlook sign-in.
- Clear OneDrive and Office identity cache
- Sign out of OneDrive for Business.
- Delete these folders:
-
%localappdata%\Microsoft\OneAuth -
%localappdata%\Microsoft\IdentityCache
-
- If Office still shows the old tenant, clear the Office identity registry key
- Warning: Registry changes can cause serious problems if done incorrectly. Back up the registry first.
- Open Registry Editor.
- Go to:
-
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity
-
- Delete the Identity key.
- Restart the PC
- Sign back in with the current Microsoft 365 account
- Open an Office app or OneDrive and sign in with the current credentials.
If the device is managed and Office sign-in still keeps the old account, additional cached Office credentials may need to be cleared from managed-device WAM storage by using the Microsoft script described in the activation reset guidance.
References:
- OneDrive for Business can't sync after tenant migration
- Error AADSTS50020 when signing in to the OneDrive sync app
- Reset activation state for Microsoft 365 Apps for enterprise
- when I try to login to Outlook, the old tenant appears. How can I delete the old tenant from my PC? - Microsoft Q&A
- how to remove an old work account - Microsoft Q&A