Hello Community,
I’m facing a major roadblock with my Google Cloud project and need urgent assistance. Here’s a summary of my issue:
Service Account in Question:
Issue:
I am unable to create a key for this service account (or any other service account in my project) due to an enforced organization-level policy:
constraints/iam.disableServiceAccountKeyCreation.
When attempting to create a key, I receive this error:
ERROR: (gcloud.iam.service-accounts.keys.create) FAILED_PRECONDITION: Key creation is not allowed on this service account. - '@type': type.googleapis.com/google.rpc.PreconditionFailure violations: - description: Key creation is not allowed on this service account. subject: projects/[project]/serviceAccounts/tlentine-upahead-online@[project].iam.gserviceaccount.com type: constraints/iam.disableServiceAccountKeyCreation
Policy Checks:
Service Account Key List:
Support Limitations:
Any help, insights, or pointers would be greatly appreciated! This issue is significantly delaying my project.
Thank you in advance!
Thomas Lentine
Owner, UpAhead LLC
Hi @tlentine,
Welcome to Google Cloud Community!
Are you able to edit your IAM user role with “Organization Policy Administrator” and “Organization Administrator” at the organization-level? If you are able to add these roles, this should enable you to modify disableServiceAccountKeyCreation in the “Organization Policies” section.
See the following questions that were asked in Google Cloud Community and Stackoverflow a while ago for reference:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Thank you for this answer. I was able to modify my Org Policies after I made the changes at the org-level instead of trying to do it in the project itself.