When Role is used in roles.create, the role name must not be set.
When Role is used in output and other input such as roles.patch, the role name is the complete path. For example, roles/logging.viewer for predefined roles, organizations/{ORGANIZATION_ID}/roles/myRole for organization-level custom roles, and projects/{PROJECT_ID}/roles/myRole for project-level custom roles.
title
string
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.
description
string
Optional. A human-readable description for the role.
includedPermissions[]
string
The names of the permissions this role grants when bound in an IAM policy.
The current launch stage of the role. If the ALPHA launch stage has been selected for a role, the stage field will not be included in the returned definition for the role.
[[["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-05-21 UTC."],[[["\u003cp\u003eThis resource defines a "Role" within the Identity and Access Management API, detailing its structure and function.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation outlines the role's properties, including \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003etitle\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e, \u003ccode\u003eincludedPermissions\u003c/code\u003e, \u003ccode\u003estage\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, and \u003ccode\u003edeleted\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey fields of a role, like its name, description, and permissions, can be set, and its lifecycle stage and deletion status are also defined.\u003c/p\u003e\n"],["\u003cp\u003eSeveral methods, such as \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, and \u003ccode\u003equeryGrantableRoles\u003c/code\u003e, allow for retrieving and managing roles.\u003c/p\u003e\n"]]],[],null,["# REST Resource: roles\n\n- [Resource: Role](#Role)\n - [JSON representation](#Role.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Role\n--------------\n\nA role in the Identity and Access Management API."]]