Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Apple Mail won't add a gmail address

When trying to add a gmail address to my MacBook Air I get this message:

Authorization Error

Error 400: invalid_request


You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.


You can let the app developer know that this app doesn't comply with one or more Google validation rules.


47 replies

I couldn't add my gmail account to mail. NOW SOLVED.

Days of trying. Then this...

Go to Preferences and set your default browser to Safari.

Open Safari and make sure you are not logged into your Google account.

Go back to System Preference>Internet Accounts and add your Google Account.

The confirmation will open your default Browser Safari. Log into Your Google Account.

All done.

So easy when you rely on Apple and not Google.

OSX 10.15.7

2024-02-02

MacOS 14.1 Sonoma


1) Safari > Settings > Privacy Tab > Advanced Settings > Uncheck all the checked boxes under "Privacy:"

2) Go back to mail app and add accounts normally.

3) Go back to step one but re-check the boxes that were unchecked.


The settings on 1) is only messing with logging in. But once authenticated, mail updates fine after safeguards are turned back on.

I was able to figure this out. For me, it was an issue with safari blocking pop ups. If you go to safari settings and allow pop ups for the google website (specifically the google account one) and you try again you will be able to add the gmail to your internet accounts.


I hope this helps!

Mac's Mail App is not as modern as iOS's Mail app, Many eMail providers now require a separate App Password different from your eMail password…


It just needs an App Password separate from the gMail password…

https://support.google.com/mail/answer/185833?hl=en-GB

Apple Mail won't sign in to Google account - Apple Community

my iMac has OS Yosemite 10.10.5 Does this… - Apple Community

gmail on mail Version 11.5 (3445.9.1) - Apple Community



Note from PrestoWebDesign…

Trying to add Gmail account to Apple Mail… - Apple Community

Trying to add Gmail account to Apple Mail… - Apple Community


I followed the steps in the video and it still didn't work for me. I found a work around


Work Around:

  • Change default browser to Chrome (haven't tried other browsers but this one worked)
  • Re-attempt to add your gmail account


** My issues was that MAC would try to authenticate through a private window. Couldn't figure out how to stop settings from defaulting to a "safari private browser." So the easiest thing to do was try changing the browser


MacOS 14.2.1

More info than you need likely...


Mail and Google's OAuth 2.0 policy

Mail and Google's OAuth 2.0 policy - Apple Community


Fix…

https://code2care.org/macos/fix-mail-authorization-error-400-invalid-request/


Mac's Mail App is not as modern as iOS's Mail app, Many eMail providers now require a separate App Password different from your eMail password…

If it's an IMAP account, delete it in Sys Prefs Internet Accounts then use "Other" instead of gMail choice to add it.

Most likely biggest factor is using Other in Mail setup, then using a Browser that doesn’t have gMail PW stored init to get the App PW.

Unable to add Gmail to MacOS mail - Apple Community


Thanks to Bob Sabiston…


iMac says Connection Insecure. Failed to … - Apple Community


Thanks to Webmb…

Sonoma can’t connect to gMail…

I'm no longer receiving mails on my iMac … - Apple Community


GC mac

User level:

Level 1


4 points

Nov 1, 2023 10:12 PM in response to Maggiellv

I also spent hours trying to solve this issue until I followed this video... It worked and my Gmail accounts are back on Mac Mail.


Give it a shot and good luck! https://www.youtube.com/watch?v=U0WPw2TsTAY


It might just need an App Password separate from the gMail password…

The process to add a gmail account to my … - Apple Community

https://support.google.com/a/answer/9003945?hl=en#apple-mail&zippy=%2Cset-up-gmail-with-mail-on-a-mac

Can't add a Gmail account to Apple Mail - Apple Community

https://support.google.com/mail/answer/185833?hl=en-GB

Apple Mail won't sign in to Google account - Apple Community

my iMac has OS Yosemite 10.10.5 Does this… - Apple Community

gmail on mail Version 11.5 (3445.9.1) - Apple Community


Note from PrestoWebDesign…

Trying to add Gmail account to Apple Mail… - Apple Community


https://blog.google/technology/safety-security/the-beginning-of-the-end-of-the-password/

Bingo... switching from Safari to Chrome as default browser to install GMail worked 123... finally, and even with private browsing on ... then switched back to Safari as default browser... thank you @KingInConstant!

I had to change my default browser from Safari to chrome to be able to add my gmail.

Changing the default browser to Chrome - THIS WORKED! I wasted days trouble shooting, adjusting settings, deleting and trying to my gail accounts back up and running, and all I had to do the whole time was change the default browser to chrome in order to get it working again. Maddening... but I'm grateful for this post!

Add it from Mail. go to Add Account and do it there not isn system settings.

****SOLVED**** Change default browser to Chrome until gmail account is added. Easy--done

Cant create re add Mail

James Walker1 User level:Level 1 (129 points)


Mar 1, 2019 10:39 AM in response to if240

I was having this problem trying to add a mail (not gmail) account just for Notes. In my ~/Library/Keychains folder, I found a subfolder with a long hexadecimal and hyphens name. I deleted that subfolder, logged out, and logged back in. I was then able to add the account, without having lost any passwords from my keychains.

It's possible that somewhere in your network stack the request is being blocked. Depending on the specifics of your configuration, one workaround might be to connect temporarily to another network (such as a WiFi hotspot if your phone provides one) and try again. You can switch back to your regular network once the account has been set up.

I also spent hours trying to solve this issue until I followed this video... It worked and my Gmail accounts are back on Mac Mail.


Give it a shot and good luck! https://www.youtube.com/watch?v=U0WPw2TsTAY


Some people have had success using ThunderBird for eMail, others have given up & just useWebMail at gmail.com


https://www.thunderbird.net/en-US/

Not working!!

Oh, I agree it's a pain, but Security is an ever changing target & Mail.App being tied to the MacOS version is not going to be updated.:(

I had to dig around in google to find the app password setting as they must have recently moved it. Had it switched/created - and it still didn't work for me.

Changing b 00004000 rowser to chrome solved my problem. thank you

This is no solution. Why is it not working with google and Apple using the simple email function?


Really do not understand this…


added lots of folders to archive all of my Gmail in the email functionality of my iMac but am not able to use it anymore…


terrible


Spot on fix for this, at least for me. Spent hours dealing with this searching and ultimately called apple support who wouldn't help due to age of my machine. This was a very easy, simple and in hindsight logical fix. Thanks, Bob!

I cannot add mail accounts I am signed in toMac Mail on my MacBook Air. No problem on other linked devices. I set up zoom.us he other day and then was told that this was an invalid request error 400. Contact the developer, it said. That is surely joke. How do I know who the developers of zoom.us is, ho can i possibly contact them from Japan, and what do YOU think would happen as a result? I want my functioning mail back; been through all the steps to set up accounts, now they exist but I can't add to Mail on this one device.


Do not try and mix gmail with OSX Mail!!!!! I have spent the day trying everything I can find on every support forum to try and work out how to add my wife's gmail account to OSX mail. It will work on the iPhone fine but it's impossible to add to the computer. It's been excruciating. I can't understand why this isn't a solvable problem. It's ludicrous.


Had to change my Gmail PW and now I cannot update my PW in the mail app....


Is there an updated fix at the moment? Because all previous solutions are not working for me.


I am using macOS High Sierra 10.13.6

This is not working on my iMac. Very annoying!!!


is there another easy solution for this?

👍

Finally, this worked! I am so happy!


thank you

This worked for me! Thanks so much!! Been trying for months to solve this!!

I just switched back my default browser but now know to switch it when I need to add an email account!

unfortunately this doesn't work. Trying to add Google brings a 400 error code (no OAuth 2.0)

This video solved it 👍 ( complicated but well worth it )

video solved it. Thanks very much 👍

where is preferences?

System Preference>Internet Accounts


Or in the last to OSes...


System Settings>Internet Accounts

Odd that this works for some but not for me :(

Nice tip/find! :)


After 3 weeks of frustration, this worked for me. Thank you!!!

This worked for me too after trying the other methods mentioned above.


this worked for me - thanks!

this worked for me! thank you

THANK YOU THANK YOU!!!!! You answered 3 weeks of me trying everything. I don't know what happened when the newest Mac update came out but it has a glitch for this PRIVATE WINDOW thing.

Thank you for this! It worked. I've been trying intermittently for the last week to fix this issue of "Error 400"

Thank you, these steps worked!

Checked and unchecked privacy tab didn't work for me.

Great info! :)

Wow! Thank you so much!