Dear Gary O’Neall,
Thank you for reaching out to the Microsoft Q&A forum. I understand one specific Gmail account that previously worked in classic Outlook suddenly stopped syncing, and when you try to add it back you receive: “We weren’t able to set up your Google account with IMAP…”. I am happy to assist you. Have you tried the AI given steps yet? Please:
- Make sure classic Outlook is on the build that contains the fix, then retry the sign-in. After updating to a fixed build, re-add the Gmail account and use the Retry link on the error window to repeat the browser sign-in, making sure the consent box for Microsoft apps & services (“Read, compose, send, and permanently delete all your email from Gmail”) is selected. If you are seeing the same error at add-account time, open another browser window (available in Version 2404 Build 17531.10000 and later, depending on channel).
- If you are already on a fixed build and it still fails, clear the stale Google consent + cached OAuth tokens for just this Gmail account. Close Outlook, then sign in to the affected Google account and remove “Microsoft apps & services” access (Google Account > Security > Your connections to third-party apps & services > Microsoft apps & services > Remove all access). Then open Windows Credential Manager and remove the Gmail IMAP OAuth credentials that start with “MicrosoftOffice16_Data:OAUTH2” and include “tp_google_imap_Oauth2” (there are two per Gmail account). If you need to avoid removing credentials for other Gmail accounts, map the correct identity using this registry path: Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities. After clearing consent and credentials, open Outlook and sign in via browser again (or add the Gmail account back) and ensure the Gmail permission checkbox is selected during browser sign-in.
Thank you for your understanding, please let me know when you have further updates. I am here to help.
Look forward to hearing from you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.