Outlook is still seeing the old Gmail accounts because the account identities and OAuth credentials are stored in the Windows profile and Google account, not in the Office installation itself. Reinstalling Microsoft 365 does not remove those.
To fix the Gmail sign-in and clean up the stale connection, follow the documented manual workaround for classic Outlook and Gmail:
- Remove Outlook’s access in the Google account
- Close Outlook.
- Sign in to the Gmail/Google account in a browser at google.com.
- Select the profile picture > Manage your Google Account.
- In the left menu, select Security.
- Scroll to Your connections to third-party apps & services and select Microsoft apps & services.
- Under Microsoft apps & services has some access to your Google Account, select See Details.
- Under Access you've given to Microsoft apps & services, select Remove all access.
- Select Confirm.
- Remove the stored Google IMAP OAuth credentials from Windows
- Open Credential Manager from the Start menu (on some systems via Control Panel > Credential Manager).
- Select Windows Credentials.
- Under Generic Credentials, find entries starting with MicrosoftOffice16_Data:OAUTH2.
- Expand each and hover over the name until the full value shows, including tp_google_imap_Oauth2. These are the Gmail credentials.
- Remove each credential that includes MicrosoftOffice16_Data:OAUTH2 with tp_google_imap_Oauth2. There are two per Gmail account; remove both for each affected account.
- If only a specific Gmail account should be removed, map the credentials to identities under the registry key:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities
The subkeys here include the Gmail identities; the leading number matches the credential in Credential Manager.
- Re-add or re-authenticate the Gmail account in Outlook
- Start Outlook with the profile that was not syncing.
- Use the Sign in via browser bar in Outlook, or if the account was removed, go to File > Add account and add the Gmail account again.
- When the Google sign-in page opens, sign in and ensure the checkbox is selected for:
“Microsoft apps & services can access: Read, compose, send, and permanently delete all your email from Gmail.”
- Complete the sign-in.
If Outlook is on a build that includes the Gmail fix, and the checkbox was previously missed, use the Retry link on the Outlook error dialog to repeat the browser sign-in and grant the required access instead of removing and re-adding the account.
This process clears the hidden stored identities and tokens that survived the Office reinstall and forces a clean, working connection between Outlook and Gmail.
References: