[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThis guide helps resolve access issues with Gemini Code Assist Standard and Enterprise features in the Google Cloud console and supported IDEs.\u003c/p\u003e\n"],["\u003cp\u003eAccess may require enabling the Gemini for Google Cloud API, which can be done with proper permissions.\u003c/p\u003e\n"],["\u003cp\u003eUsing Gemini Code Assist features requires the correct user permissions, which can be granted by a Google Cloud administrator.\u003c/p\u003e\n"],["\u003cp\u003eA Gemini Code Assist Standard or Enterprise license must be assigned to the user to utilize the features, and this might need administrator intervention.\u003c/p\u003e\n"],["\u003cp\u003eUsers with appropriate permissions can self-assign a license via the Google Cloud console, and licenses can be managed through subscription settings.\u003c/p\u003e\n"]]],[],null,["# Troubleshoot access to Gemini Code Assist Standard and Enterprise features\n\nThis document shows you how to resolve issues with accessing\nGemini Code Assist Standard and Enterprise features.\n\nDepending on the Google Cloud project and organization settings that your\nadministrator configured, you might need to take additional steps to access\n\n[Gemini Code Assist Standard and Enterprise features](/gemini/docs/codeassist/overview#supported-features)\nin the Google Cloud console and\n\n[supported IDEs](/gemini/docs/codeassist/supported-languages#supported_ides),\nsuch as enabling required APIs and assigning yourself a\nGemini Code Assist Standard or Enterprise license.\n\nDisabled Gemini for Google Cloud API\n------------------------------------\n\nThe following error occurs when you are attempting to use a\nGemini Code Assist Standard or Enterprise feature, such as a\nquick prompt in the Google Cloud console or code completion in a supported\nIDE:\n\nThis error occurs if the\n\n[Gemini for Google Cloud API isn't enabled](/gemini/docs/discover/set-up-gemini#enable-api).\n\n\nIf you have permissions to enable the Gemini for Google Cloud API on a\nGoogle Cloud project, then the message provides a link to enable it. If you\ndon't have permissions to enable it, then the message lists the permission you\nneed to enable the API.\n\nMissing permission\n------------------\n\nThe following error occurs when you are attempting to use a\nGemini Code Assist Standard or Enterprise feature, such as a\nquick prompt in the Google Cloud console or code completion in a supported\nIDE:\n\nThis error occurs if you don't have the\n\n[required user permission to use a feature](/gemini/docs/discover/set-up-gemini#grant-iam).\n\n\nTo resolve this issue, contact your Google Cloud administrator and request them\nto grant you the missing permission.\n\nMissing Gemini Code Assist Standard or Enterprise license\n---------------------------------------------------------\n\nTo use Gemini Code Assist Standard or Enterprise, you need to\nhave a license assigned to you. If the required APIs are enabled on your\nGoogle Cloud project and you have the required permissions to use\nGemini Code Assist Standard or Enterprise features, but you\nattempt to use a Gemini Code Assist Standard or Enterprise\nfeature (such as quick prompt in the Google Cloud console or code completion\nin a supported IDE), the Google Cloud console displays a message explaining\nthat you need to get a Gemini Code Assist Standard or Enterprise\nlicense.\n\nIf you don't have permissions to self-assign a license or manage licenses, then\nyou are provided a link to learn more about Gemini Code Assist\nStandard and Enterprise licensing. You will need to request a license from your\nGoogle Cloud project administrator.\n\n### License self-assignment for Google Cloud console-based Gemini Code Assist Standard and Enterprise features\n\nIf you have permissions to self-assign licenses and a license is available in\nyour organization, then you'll see a dialog in the Google Cloud console where\nyou click **Get a license** to have one assigned to you. Clicking that button\nassigns a license to you, and it remains assigned until a period of inactivity\nelapses. After that period of inactivity, your license is unassigned and\nreturned to the pool of available licenses.\n\nIf you have permissions to\n\n[manage licenses](/gemini/docs/manage-licenses),\nthen\nyou'll see a dialog where you click **Manage subscription** manually or\nautomatically assign a license."]]