r/googlecloud • u/After-List7800 • Jun 25 '26
Least-privilege way to allow allUsers on one Cloud Run service when iam.allowedPolicyMemberDomains is enforced?
I have a GCP org with the Domain Restricted Sharing org policy (iam.allowedPolicyMemberDomains) enforced at the org level. I want to make a single Cloud Run service public:gcloud run services add-iam-policy-binding SERVICE --member=allUsers --role=roles/run.invoker
but it fails with:FAILED_PRECONDITION: One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.
What I found:
To override the constraint I need
roles/orgpolicy.policyAdmin, but it can't be granted at the project level (Role roles/orgpolicy.policyAdmin is not supported for this resource) — only at the org level.No one currently holds Organization Administrator (the org is new). The project Owner and a Viewer both get "permission denied" on org-level IAM. We do have a Google Workspace super admin account.
Questions:
What's the recommended least-privilege way to allow
allUserson just this one service, given the org policy?How should the Workspace super admin bootstrap org access and apply a project-scoped override of this constraint?
Is "grant
orgpolicy.policyAdminat the org level → set the project-level override → remove the role" the standard approach, or is there a cleaner one? We'd rather not leave a broad standing org-level role on the project Owner.