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\u003eThe \u003ccode\u003eRole\u003c/code\u003e resource represents a role within the Identity and Access Management API, defining access permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of a \u003ccode\u003eRole\u003c/code\u003e includes fields such as \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, all providing specific details about the role.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e field in a \u003ccode\u003eRole\u003c/code\u003e resource is the complete path, with variations for predefined roles, organization-level custom roles, and project-level custom roles.\u003c/p\u003e\n"],["\u003cp\u003eSeveral methods are available for managing \u003ccode\u003eRole\u003c/code\u003e resources, including creating, deleting, getting, listing, patching, and undeleting roles.\u003c/p\u003e\n"],["\u003cp\u003eThe current deleted state of a \u003ccode\u003eRole\u003c/code\u003e is a boolean value which can be checked, but cannot be set.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.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."]]