[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThe IAM permissions \u003ccode\u003ecloudaicompanion.companions.generateChat\u003c/code\u003e and \u003ccode\u003ecloudaicompanion.companions.generateCode\u003c/code\u003e will be deprecated on February 1, 2026.\u003c/p\u003e\n"],["\u003cp\u003eYou should identify any custom IAM roles that control access to the Gemini for Google Cloud API by navigating to the Roles page in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eBefore February 1, 2026, you need to add the new permissions \u003ccode\u003ecloudaicompanion.instances.completeCode\u003c/code\u003e, \u003ccode\u003ecloudaicompanion.instances.completeTask\u003c/code\u003e, \u003ccode\u003ecloudaicompanion.instances.generateCode\u003c/code\u003e, and \u003ccode\u003ecloudaicompanion.instances.generateText\u003c/code\u003e to your custom roles.\u003c/p\u003e\n"],["\u003cp\u003eUntil February 1, 2026, retain the old permissions \u003ccode\u003ecloudaicompanion.companions.generateChat\u003c/code\u003e and \u003ccode\u003ecloudaicompanion.companions.generateCode\u003c/code\u003e in your custom roles.\u003c/p\u003e\n"]]],[],null,["# Deprecated IAM permissions\n\nThe following Identity and Access Management (IAM) permissions will be deprecated February\n1, 2026:\n\n- `cloudaicompanion.companions.generateChat`\n- `cloudaicompanion.companions.generateCode`\n\nTo prepare for this change, take the following steps:\n\n1. Identify any custom IAM roles that you have that control\n access to the Gemini for Google Cloud API:\n\n 1. In the Google Cloud console, go to the **Roles** page.\n\n [Go to Roles](https://console.cloud.google.com/iam-admin/roles)\n 2. In the Google Cloud console toolbar, select your organization or\n project from the list.\n\n 3. To view role permissions, select the checkbox for one or more roles.\n An adjacent pane displays any permissions contained in the roles.\n\n The icons in the **Type** column indicate if it's a custom role\n (\"factory\" icon) or a predefined role\n (hexagon icon).\n\n If you want to find all the roles that include a specific permission,\n type the permission name in the **Filter** field at the beginning of the\n **Roles** list.\n2. Add new permissions. Before February 1, 2026, add the following new\n permissions to your custom roles:\n\n - `cloudaicompanion.instances.completeCode`\n - `cloudaicompanion.instances.completeTask`\n - `cloudaicompanion.instances.generateCode`\n - `cloudaicompanion.instances.generateText`\n3. Retain old permissions. Until February 1, 2026, keep the following\n permissions in your custom roles:\n\n - `cloudaicompanion.companions.generateChat`\n - `cloudaicompanion.companions.generateCode`\n\nAfter February 1, 2026, you can safely remove the old permissions from your\ncustom roles.\n\nFor more information about updating custom roles, see\n[Create and manage custom roles](/iam/docs/creating-custom-roles)."]]