gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Login Failed: "Ensure your Google account is not a Workspace account" Error for a Standard Account

Open Illustar0 opened this issue 1 year ago • 98 comments

Describe the bug

Failed to login. Ensure your Google account is not a Workspace account. 
Message: Request contains an invalid argument.

I am unable to log in using my standard (non-Workspace) Google account. Every time I attempt to sign in, I receive an error message stating that my account should not be a Workspace account and that the request contains an invalid argument. My account is a personal @gmail.com account and has never been associated with Google Workspace.

The same thing happens with the Gemini Code Assist plugin on Jetbrains

Update: Please react with a 👍 below instead of adding another "same problem" comment.

Additional context Image

Illustar0 avatar Jun 25 '25 13:06 Illustar0

I encountered the same problem. I installed Docker Engine within WSL on Windows and opened the shell environment in the container through VS Code Dev Container. I have installed the xdg-utils tool, and when executing gemini, browser opens, but the screen always shows the following error:

Failed to login. Ensure your Google account is not a Workspace account.
Message: Request contains an invalid argument.

Image

doggy8088 avatar Jun 25 '25 14:06 doggy8088

Same for me!

In browser:

Gemini Code Assist and the Gemini CLI are now authorized to access your account
 
The authentication with Gemini Code Assist, Cloud Code with Gemini Code Assist, or the Gemini CLI was successful.

In terminal:

Failed to login. Ensure your Google account is not a Workspace account.
Message: Request contains an invalid argument.

cofirazak avatar Jun 25 '25 14:06 cofirazak

Same thing for me. I am getting a successful auth message in the browser but login failure message.

Image

jpsalm avatar Jun 25 '25 14:06 jpsalm

All accounts associated with Google Cloud Platform are classified as Workspace accounts...even without bound payment methods or usage of GCP services, which I think is unreasonable.

BryceWG avatar Jun 25 '25 14:06 BryceWG

The same problem was encountered on mac

resetsix avatar Jun 25 '25 14:06 resetsix

The same problem was encountered on linux.

marsevilspirit avatar Jun 25 '25 14:06 marsevilspirit

Describe the bug

Failed to login. Ensure your Google account is not a Workspace account. 
Message: Request contains an invalid argument.

I am unable to log in using my standard (non-Workspace) Google account. Every time I attempt to sign in, I receive an error message stating that my account should not be a Workspace account and that the request contains an invalid argument. My account is a personal @gmail.com account and has never been associated with Google Workspace.

Additional context Image

Same and in browser i see this: Authentication using Gemini Code Assist or Cloud Code with Gemini Code Assist was successful.

But in consol window i see error like U

gitmeatarru avatar Jun 25 '25 14:06 gitmeatarru

Unless this is fixed!! we cant test anything

rajivraghu avatar Jun 25 '25 14:06 rajivraghu

Same problem, macos jetbrains/vscode, all my acoount

udkx avatar Jun 25 '25 14:06 udkx

Same problem

Image

airingursb avatar Jun 25 '25 14:06 airingursb

Same Problem.

Describe the bug

Failed to login. Ensure your Google account is not a Workspace account. Message: Request contains an invalid argument.

I am unable to log in using my workspace Google account. Every time I attempt to sign in, I receive an error message stating that my account should not be a Workspace account and that the request contains an invalid argument.

I have confirmed that logging in via the browser is successful.

Additional context

Image

SuguruOoki avatar Jun 25 '25 14:06 SuguruOoki

Same to me,my account is a personal account and has never been associated with Google Workspace Image

Jackenychen avatar Jun 25 '25 14:06 Jackenychen

Same problem.

Image

yyykf avatar Jun 25 '25 14:06 yyykf

There is some additional information here since it uses Gemini Code Assist for authentication: https://developers.google.com/gemini-code-assist/resources/faqs#gcp-project-requirement.

One thing probably missing there is that if you've ever used that Google account to sign up for Google Cloud then that would also disqualify that account.

gsquared94 avatar Jun 25 '25 14:06 gsquared94

same issue Image

JetSetDM avatar Jun 25 '25 14:06 JetSetDM

same issue

zhiyue avatar Jun 25 '25 14:06 zhiyue

Same

AndrewDragonIV avatar Jun 25 '25 14:06 AndrewDragonIV

There is some additional information here since it uses Gemini Code Assist for authentication: https://developers.google.com/gemini-code-assist/resources/faqs#gcp-project-requirement.

One thing probably missing there is that if you've ever used that Google account to sign up for Google Cloud then that would also disqualify that account.

@gsquared94 This is great information! Thanks!

SuguruOoki avatar Jun 25 '25 14:06 SuguruOoki

There is some additional information here since it uses Gemini Code Assist for authentication: https://developers.google.com/gemini-code-assist/resources/faqs#gcp-project-requirement.

One thing probably missing there is that if you've ever used that Google account to sign up for Google Cloud then that would also disqualify that account.

Just made a fresh account and still getting the same error

StefanIgnjatovic12 avatar Jun 25 '25 14:06 StefanIgnjatovic12

There is some additional information here since it uses Gemini Code Assist for authentication: https://developers.google.com/gemini-code-assist/resources/faqs#gcp-project-requirement.

One thing probably missing there is that if you've ever used that Google account to sign up for Google Cloud then that would also disqualify that account.

TNX, for info. My old personal account wouldn't work, probably because I'd used Google Cloud before. I just created a fresh Google account when the login window popped up, and it worked right away. Hope this helps someone!

udkx avatar Jun 25 '25 14:06 udkx