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

"You must be a named user on your organization's Gemini Code Assist Standard edition subscription"

Open liucf1224-del opened this issue 1 month ago • 55 comments

What happened?

✕ [API Error: [{ "error": { "code": 403, "message": "You must be a named user on your organization's\nGemini Code Assist Standard edition subscription to use this service. Please contact your\nadministrator to request an entitlement to Gemini Code Assist Standard edition.", "errors": [ { "message": "You must be a named user on your organization's\nGemini Code Assist Standard edition subscription to use this service. Please contact your\nadministrator to request an entitlement to Gemini Code Assist Standard edition.", "domain": "global", "reason": "forbidden" } ], █ "status": "PERMISSION_DENIED" █ } █ } █ ]]

An error was reported after the automatic version upgrade,I'm just using the free version of gemini cli, but what do you mean by asking me to use the standard version directly

What did you expect to happen?

error,or 403

Client information

windows and use goole auth │ │ │ About Gemini CLI │ │ │ │ CLI Version 0.15.3 │ │ Git Commit a9789ae61 │ │ Model auto │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth │█ │ GCP Project arctic-outpost-472203-m64

Login information

No response

Anything else we need to know?

No response

liucf1224-del avatar Nov 17 '25 03:11 liucf1224-del

Found possible duplicate issues:

  • #13108
  • #13135
  • #13158

If you believe this is not a duplicate, please remove the status/possible-duplicate label.

gemini-cli[bot] avatar Nov 17 '25 03:11 gemini-cli[bot]

same

Image

liusheng2020 avatar Nov 17 '25 03:11 liusheng2020

In my case auth does not work ether. I run gemini from cli, then try to make Google Auth in Chrome and Chrome redirects to this page. Before the update to the latest version (0.15) I was using gemini without any problems and auth flow was working correctly.

Image

puzanov avatar Nov 17 '25 04:11 puzanov

感觉版本升级后 出现了身份和使用模型的bug 很多人感觉都用不起

liucf1224-del avatar Nov 17 '25 05:11 liucf1224-del

me too

cgc717 avatar Nov 17 '25 11:11 cgc717

Has anyone solved this problem?

Rosenfan avatar Nov 17 '25 13:11 Rosenfan

有人解决这个问题了吗?

nobady

liucf1224-del avatar Nov 19 '25 00:11 liucf1224-del

Do you have any of the following environment variables set: GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_PROJECT_ID, GOOGLE_CLOUD_LOCATION? If so, I believe we will assume you are trying to log in with this GCP project/location and you will get hit with this error if you don't have the right permissions.

scidomino avatar Nov 19 '25 21:11 scidomino

It seems there are some reports of this issue when none of those environment variables are set so it can't be the only cause.

scidomino avatar Nov 19 '25 21:11 scidomino

Do you have any of the following environment variables set: GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_PROJECT_ID, GOOGLE_CLOUD_LOCATION? If so, I believe we will assume you are trying to log in with this GCP project/location and you will get hit with this error if you don't have the right permissions.

I have the GOOGLE_CLOUD_PROJECT env set, it was working fine then suddenly got the error, if it's a permission issue, what permissions should I have/enabled?

ivanarifin avatar Nov 19 '25 21:11 ivanarifin

Thanks for your patience as we work through this. Two things:

  1. If you are signing in to Gemini CLI as an individual

    • either using AI Pro
    • or using AI ultra
    • or using a free account

    Do NOT set the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID environment variables. These are only required if you are trying to get a license through your organization when someone went to cloud.google.com and procured a Gemini Code Assist license. We are working on fixing the bug where that error message shows up saying you need a Google Cloud project,

  2. Optionally, you can test using this branch to see if you are getting any more info from the error messages? (Please ensure that the 2 environment variables mentioned above are not set.)

npx https://github.com/google-gemini/gemini-cli.git#feat/ineligible-tier-error

scidomino avatar Nov 19 '25 22:11 scidomino

Thanks for your patience as we work through this. Two things:

  1. If you are signing in to Gemini CLI as an individual

    • either using AI Pro
    • or using AI ultra
    • or using a free account

    Do NOT set the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID environment variables. These are only required if you are trying to get a license through your organization when someone went to cloud.google.com and procured a Gemini Code Assist license. We are working on fixing the bug where that error message shows up saying you need a Google Cloud project,

  2. Optionally, you can test using this branch to see if you are getting any more info from the error messages? (Please ensure that the 2 environment variables mentioned above are not set.)

npx https://github.com/google-gemini/gemini-cli.git#feat/ineligible-tier-error

I download the branch and test and: the same

Image

Also i tried to DELETE the .env file where i have configured GOOGLE_CLOUD_PROJECT for each login CAUSE i report time ago this too... #8435 this is related when u DONT configure the GOOGLE_CLOUD_PROJECT in a free account.

Neinndall avatar Nov 19 '25 23:11 Neinndall

Thanks for your patience as we work through this. Two things:

  1. If you are signing in to Gemini CLI as an individual

    • either using AI Pro
    • or using AI ultra
    • or using a free account

    Do NOT set the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID environment variables. These are only required if you are trying to get a license through your organization when someone went to cloud.google.com and procured a Gemini Code Assist license. We are working on fixing the bug where that error message shows up saying you need a Google Cloud project,

  2. Optionally, you can test using this branch to see if you are getting any more info from the error messages? (Please ensure that the 2 environment variables mentioned above are not set.)

npx https://github.com/google-gemini/gemini-cli.git#feat/ineligible-tier-error

If the environment variable GOOGLE_CLOUD_PROJECT is not configured,the following error will be reported: Failed to login. Message: This account requires setting the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID env var│ │ https://goo.gle/gemini-cli-auth-docs#workspace-gca

If the environment variable GOOGLE_CLOUD_PROJECT are configured, the following error will occur: You must be a named user on your organization's\nGemini Code Assist Standard edition subscription to use this service. Please contact█ your\nadministrator to request an entitlement to Gemini Code Assist Standard edition.

In conclusion, this environment variable is now unusable regardless of whether it is set or not. Previously, I have been able to use it normally for several months. This problem has emerged suddenly recently.

Yqghlx avatar Nov 20 '25 02:11 Yqghlx

感谢您的耐心等待。有两件事需要说明:

  1. 如果您以个人身份登录 Gemini CLI

    • 要么使用 AI Pro
    • 或使用 AI Ultra
    • 或者使用免费帐户

    请勿设置 GOOGLE_CLOUD_PROJECT 或 GOOGLE_CLOUD_PROJECT_ID 环境变量。只有当有人访问cloud.google.com并购买了 Gemini Code Assist 许可证后,您尝试通过组织获取许可证时,才需要设置这些环境变量。 我们正在修复出现“您需要一个 Google Cloud 项目”错误消息的错误。

  2. 您也可以使用此分支进行测试,看看是否能从错误消息中获取更多信息。(请确保上面提到的两个环境变量未设置。)

npx https://github.com/google-gemini/gemini-cli.git#feat/ineligible-tier-error

如果未配置环境变量 GOOGLE_CLOUD_PROJECT,则会报告以下错误: 登录失败。消息:此帐户需要设置 GOOGLE_CLOUD_PROJECT 或 GOOGLE_CLOUD_PROJECT_ID 环境变量│ │ https://goo.gle/gemini-cli-auth-docs#workspace-gca

如果配置了环境变量 GOOGLE_CLOUD_PROJECT,则会出现以下错误: 您必须是贵组织 Gemini Code Assist 标准版订阅的指定用户才能使用此服务。请联系█ 您的管理员将申请获得 Gemini Code Assist 标准版的使用权。

总之,无论是否设置,这个环境变量现在都无法使用。此前几个月我一直正常使用它,这个问题是最近突然出现的。

That's right, that's exactly what I want to say. In short, you will report an error in how you choose.

Rosenfan avatar Nov 20 '25 02:11 Rosenfan

@scidomino Free accounts no longer need to configure the "GOOGLE_CLOUD_PROJECT" or "GOOGLE_CLOUD_PROJECT_ID" variable in .env?

However, the dev team should look into another bug that has been around for MONTHS --> #8435 cause if the dev team will fix "You must be a named user on your organization's Gemini Code Assist Standard edition subscription" the team need look at the "Failed to login. Message: This account requieres setting the GOOGLE_CLOUD_PROJECT env var error" too

Neinndall avatar Nov 20 '25 04:11 Neinndall

Thanks for your patience as we work through this. Two things:

  1. If you are signing in to Gemini CLI as an individual

    • either using AI Pro
    • or using AI ultra
    • or using a free account

    Do NOT set the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID environment variables. These are only required if you are trying to get a license through your organization when someone went to cloud.google.com and procured a Gemini Code Assist license. We are working on fixing the bug where that error message shows up saying you need a Google Cloud project,

  2. Optionally, you can test using this branch to see if you are getting any more info from the error messages? (Please ensure that the 2 environment variables mentioned above are not set.)

npx https://github.com/google-gemini/gemini-cli.git#feat/ineligible-tier-error

I download the branch and test and: the same Image

Also i tried to DELETE the .env file where i have configured GOOGLE_CLOUD_PROJECT for each login CAUSE i report time ago this too... #8435 this is related when u DONT configure the GOOGLE_CLOUD_PROJECT in a free account.

same result for me when using that branch and removing the env

ivanarifin avatar Nov 20 '25 04:11 ivanarifin

@scidomino I do not have any GOOGLE* env vars, my acc is in Google AI Pro plan, but I still cannot login and being redirected to this page https://github.com/google-gemini/gemini-cli/issues/13190#issuecomment-3539954456

puzanov avatar Nov 20 '25 05:11 puzanov

Exactly the same situation +1

dongyu6 avatar Nov 20 '25 07:11 dongyu6

same :(

Siddha911 avatar Nov 20 '25 08:11 Siddha911

same :(

Haiqi-Wu avatar Nov 20 '25 08:11 Haiqi-Wu

same :(

zbn1120 avatar Nov 20 '25 08:11 zbn1120

same :(

Cat-L avatar Nov 20 '25 09:11 Cat-L

Well at least the Collaborator confirming that this is a bug

ivanarifin avatar Nov 20 '25 09:11 ivanarifin

Error 403 clearly states: "... Gemini Code Assist Standard edition subscription to use this service."

I think the most obvious thing is that the freebie has ended, but the documentation hasn't been updated. Judging by my accounts, they've cut off a huge number of accounts, especially new ones. The ratio is roughly 30/70 (30% are still free).

But it's strange why I'm still getting a lot of 429 errors (it's not a quota, but an overload), if they've cut a bunch of free users. Perhaps they're taking the final steps and preparing the infrastructure for Gemini 3.0 Pro for production and decided to free up capacity, or maybe they cut people early to prevent them from using the new Gemini models for free.

jwadow avatar Nov 20 '25 11:11 jwadow

FSA9 avatar Nov 20 '25 11:11 FSA9

in the latest version i updated, when login with my free account with "auth with google" happens this

Image

It forces me to have a PROJECT set up and when i configure the GOOGLE PROJECT ID IN .env file happens this

Image

@scidomino

Neinndall avatar Nov 20 '25 12:11 Neinndall

in the latest version i updated, when login with my free account with "auth with google" happens this

Image It forces me to have a PROJECT set up and when i configure the GOOGLE PROJECT ID IN .env file happens this Image [@scidomino](https://github.com/scidomino)

Same

AlhenaaS avatar Nov 20 '25 20:11 AlhenaaS

Image_1763793969171.png

Emm.....The service is restored in my area?

FireworkRocket avatar Nov 22 '25 06:11 FireworkRocket

Image_1763793969171.png

Emm.....The service is restored in my area?

not appear to u more "you must be a named user on your organizactions Gemini Code ASsisst Standard ..."?

Neinndall avatar Nov 22 '25 12:11 Neinndall

Image_1763793969171.png

Emm.....The service is restored in my area?

not appear to u more "you must be a named user on your organizactions Gemini Code ASsisst Standard ..."?

Yes, After using it throughout the day (UTC+8), I haven't encountered that issue again.

FireworkRocket avatar Nov 22 '25 15:11 FireworkRocket