REST Resource: organizations.roles Stay organized with collections Save and categorize content based on your preferences.
Resource: Role
A role in the Identity and Access Management API.
| JSON representation |
|---|
{"name":string,"title":string,"description":string,"includedPermissions":[string],"stage":enum ( |
| Fields | |
|---|---|
name |
The name of the role. When When |
title |
Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes. |
description |
Optional. A human-readable description for the role. |
includedPermissions[] |
The names of the permissions this role grants when bound in an IAM policy. |
stage |
The current launch stage of the role. If the |
etag |
Used to perform a consistent read-modify-write. A base64-encoded string. |
deleted |
The current deleted state of the role. This field is read only. It will be ignored in calls to roles.create and roles.patch. |
RoleLaunchStage
A stage representing a role's lifecycle phase.
| Enums | |
|---|---|
ALPHA | The user has indicated this role is currently in an Alpha phase. If this launch stage is selected, thestage field will not be included when requesting the definition for a given role. |
BETA | The user has indicated this role is currently in a Beta phase. |
GA | The user has indicated this role is generally available. |
DEPRECATED | The user has indicated this role is being deprecated. |
DISABLED | This role is disabled and will not contribute permissions to any principals it is granted to in policies. |
EAP | The user has indicated this role is currently in an EAP phase. |
Methods | |
|---|---|
| Creates a new customRole. |
| Deletes a customRole. |
| Gets the definition of aRole. |
| Lists every predefinedRole that IAM supports, or every custom role that is defined for an organization or project. |
| Updates the definition of a customRole. |
| Undeletes a customRole. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-21 UTC.