An Application Operator can add other Application Operators to the project through the GDC console and access to project resources.
Before you begin
Permissions are required to set up or remove role bindings. Ask your Project
IAM Admin or Organization IAM Admin to grant you the Project IAM Admin
role.
Set up role bindings
Work through the following steps to set up role bindings:
Console
- Sign in to the GDC console.
For example, the following image signs in to the GDC console for
an organization named
org-1
: - Click Select project in the menu bar. Select one of the existing
projects you want to set up the role binding in, then click Open. The
selected project displays after your org name in the menu bar. The
following example shows the selected
iam-test
project: - In the navigation menu, click Identity & Access and Access.
- Click Add member.
- In the Identity provider dropdown menu, select an identity provider.
- After Member type, choose whether you want to add individual users with
User, or groups with Group. The following example shows the selected
User
: - In the Username or group alias field, enter the username, email address,
or alias.
- In the Roles drop-down list, select the role that you want to assign
to the user or group, such as Project Viewer. You can bind the
selected user or group with multiple roles at a time by clicking
Add Another Role.
- Click Add.
gdcloud
Ensure you have the gdcloud CLI installed.
Sign in using the
gdcloud auth login
command to authenticate with your identity provider. For more information, see the gdcloud CLI authentication.Set up role bindings for a project:
gdcloud projects add-iam-policy-binding PROJECT \ --member=USER_ACCOUNT \ --role= ROLE
Replace the following variables:
PROJECT
: the name of the project for which you're setting up the role binding.USER_ACCOUNT
: the user account to which you want to grant the role. This flag accepts either a user email address with the identity provider prefix (user:idpprefix-user@example.com
) or a service account name with the service account project (serviceAccount:projectName:serviceAccountName
).ROLE
: the name of the predefined or custom role you want to assign to the user.
Remove role bindings
When access is no longer required, remove a member and their associated roles, permissions, and access.
To remove members, work through the following steps:
Console
- Sign in to the GDC console.
- Click Select project in the menu bar. Select one of the existing projects you want to set up the role binding in, then click Open. The selected project displays after your org name in the menu bar.
- In the navigation menu, click Identity & Access and Access.
- In the authorized members list, select a member. You can remove multiple
members at a time by selecting multiple members in the list.
- Click Remove All Access to remove all the role bindings associated with
a member from your current project.
- When prompted, click Remove Member to confirm.
gdcloud
Ensure you have the gdcloud CLI installed.
Sign in using the
gdcloud auth login
command to authenticate with your identity provider. For more information, see the gdcloud CLI authentication.Remove role bindings for a project:
gdcloud projects remove-iam-policy-binding PROJECT \ --member=USER_ACCOUNT \ --role= ROLE
Replace the following variables:
PROJECT
: the name of the project from which you're removing the role binding.USER_ACCOUNT
: the user account from which you want to remove the role. This flag accepts either a user email address with the identity provider prefix (user:idpprefix-user@example.com
) or a service account name with the service account project (serviceAccount:projectName:serviceAccountName
).ROLE
: the name of the predefined or custom role you want to remove from the user account.