Disable service account key creation policy in Google Cloud
This page tells you how to disable the service account key creation policy in Google Cloud.
The iam.disableServiceAccountKeyCreation
policy restricts the creation of service account keys, which can prevent synchronization with Google Directory. To allow successful directory synchronization, you need to disable this policy.
To disable the service account key creation policy, do as follows:
- Sign in to your Google Cloud console.
-
From the project picker, select your organization.
You've selected your organization, which displays recent projects you've worked on.
-
From the left-hand pane, go to IAM & Admin > IAM.
-
Check if you have the
Organization Policy Administrator
role. If you don't, do as follows:- Click the Edit icon
next to your account.
- Add the
Organization Policy Administrator
role by searching for it and selecting it. - Click Save.
You now have the
Organization Policy Administrator
role assigned to your account. - Click the Edit icon
-
From the left-hand pane, go to IAM & Admin > Organization Policies.
- In the Filter field, enter
Disable service account key creation
to locate the organization policy withiam.disableServiceAccountKeyCreation
. -
Click the three dots icon on the right-hand side and select Edit policy.
-
Under Policy source, select Inherit parent's policy.
-
Click Set Policy.
The iam.disableServiceAccountKeyCreation
policy is now inactive. You can successfully synchronize Google Directory.