The error is a known issue with classic Outlook and Gmail IMAP and is not caused by changes in Gmail settings on the user side.
Use these steps depending on the Outlook build and scenario:
- Verify Outlook is on a fixed build
- For the “We weren’t able to set up your Google account with IMAP” error, install an Outlook build that contains the fix:
- For sign‑in issues (“browser or app may not be secure” / IMAP setup error):
- Beta Channel: Version 2404 (Build 17531.10000)
- Current Channel Preview: Version 2404 (Build 17531.10000)
- Current Channel: Version 2404 (Build 17531.10000)
- Monthly Enterprise Channel: Version 2407 (Build 17727.10000)
- For the classic Outlook Gmail-IMAP consent issue: Current Channel Version 2412 Build 18324.20168 or later.
- For sign‑in issues (“browser or app may not be secure” / IMAP setup error):
- In Outlook, go to File > Office Account > About Outlook to confirm the version and update if needed.
- For the “We weren’t able to set up your Google account with IMAP” error, install an Outlook build that contains the fix:
- If Outlook is on Current Channel Version 2412 Build 18324.20168 or later
- When the Gmail error appears in Outlook, use the Retry link in the error window.
- In the browser sign‑in flow for Google, ensure the consent box is checked for:
- “Read, compose, send, and permanently delete all your email from Gmail.” under Select what Microsoft apps & services can access.
- Complete sign‑in and let Outlook reconnect.
- If the error mentions insecure browser / app or still shows the IMAP setup error
- Make sure Outlook is updated to a channel/build that includes the sign‑in fix (Version 2404 / 2407 as listed above).
- If Outlook was temporarily moved to an Insider channel as a workaround, use the documented registry methods to switch back to Current Channel after updating:
- Set the registry key that enables the channel toggle (see “Method 2: Registry: InsidersLabBehavior”).
- Or run the registry command that switches the channel directly, then restart Outlook and choose File > Office Account > Update Options > Update Now.
- Confirm IMAP is enabled in Gmail (if still failing)
- In a browser, sign in to Gmail.
- Go to Settings > Forwarding and POP/IMAP.
- Under IMAP Access, select Enable IMAP and Save Changes.
- Note: Google is in the process of removing this control for some users, so it may not appear for every account.
- If using older Outlook builds with the “Could not sign you in to Google – IMAP” error
- For Version 2008 Build 13127.20296 and earlier, enable optional connected experiences as a workaround:
- Open Outlook (or any Office app) > File > Office Account.
- Under Account Privacy, select Manage Settings.
- Check Enable optional connected experiences.
- Restart Outlook and re-add or reconnect the Gmail account.
- For Version 2008 Build 13127.20296 and earlier, enable optional connected experiences as a workaround:
- If all above is correct and the account still fails
- Remove the Gmail account from the Outlook profile and add it again after confirming:
- Outlook is on a fixed build.
- IMAP is enabled in Gmail (if available).
- The Google consent box for Microsoft apps & services is checked during sign‑in.
- Remove the Gmail account from the Outlook profile and add it again after confirming:
These steps address the regression where Gmail accounts that previously worked in classic Outlook suddenly stop connecting with the IMAP setup error.
References: