Project IAM policy permanently unreadable (500 INTERNAL on getIamPolicy/SetIamPolicy) after deleted workforce pool principals were purged

Hi all,

We have a production project whose IAM policy can no longer be read or written, and we’d like to know if anyone has seen this before.

Symptoms (since ~2026-09-29)

  • gcloud projects get-iam-policy <project> returns 500 Internal error encountered (status INTERNAL). The same happens via the Resource Manager v1 and v3 APIs, with both requestedPolicyVersion 1 and 3.
  • SetIamPolicy on the project fails with code 13 "Error calling IAM GetPolicy".
  • In the Console, the IAM page and the Permissions tab of every resource in the project fail to load, because iam.googleapis.com/v1/iamPolicies:getPolicyDetails returns 500.

What still works

  • Existing access is still enforced, and workloads run normally.
  • Resource-level policies (e.g. buckets) can be read and edited via gcloud.
  • Cloud Asset Inventory returns the project policy, and it looks well-formed: about 116 bindings, no conditions.
  • getIamPolicy works on every other project in the same organization.

Ruled out

  • Identity: it fails for users, including an org-level owner, and for a service account from another project.
  • Permissions: the error is 500, not 403.
  • Deny policies and Principal Access Boundary: there are none.
  • Custom roles: they all exist.
  • Org-level IAM changes: they were routine.

Timeline

  1. Two workforce identity pools were deleted. The project policy kept deleted:principal://iam.googleapis.com/locations/global/workforcePools/<pool>/subject/<id> bindings in three roles.
  2. The last successful SetIamPolicy happened the day before step 3.
  3. Exactly ~31 days after the pool deletion, Asset Inventory shows a new policy version with no SetIamPolicy call: those deleted:principal:// bindings were removed, presumably by the automated purge. This is the only change after the last successful write.
  4. Since then, every read and write of the project policy fails.

What we tried

  • Recreating both pools with the same IDs. They are ACTIVE now, but it had no effect.
  • gcloud iam workforce-pools subjects undelete <id> --workforce-pool=<pool> --location=global fails with FAILED_PRECONDITION.
  • No other IAM policy in the organization references those pools or subject.

We have a support case open, and the first suggestion (undelete the pool and subjects) didn’t apply.

Questions

  1. Has anyone hit a project IAM policy that became unreadable after a workforce pool purge, or after any other automatic cleanup?
  2. Is there any customer-side action that can force the policy to be rewritten or repaired?

Thanks!

This seems to be a Google Cloud issue. Save a copy of the IAM policy and contact Google Support. Google’s documentation explains that permanently deleted workforce identities cannot be restored.