Good morning.
I uploaded a very simple docker container (NGINX web server) to Cloud Run and when I started it I get the following:
The service has been created, however, it may not be publicly accessible. Setting IAM policy failed for the resource (URL Removed by Staff). The role “roles/run.invoker” failed to be assigned to the next principals: allUsers. Details: One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.
When I attempted to assign the role “roles/run.invoker” to allUsers to correct the above, I got the following:-
IAM policy update failed
The ‘Domain Restricted Sharing’ organization policy (constraints/iam.allowedPolicyMemberDomains) is enforced. Only principals in allowed domains can be added as principals in the policy. Correct the principal emails and try again. Learn more about domain restricted sharing.
When I attempt to correct the above problem, I was blocked in the GUI with the following:-
Required permission(s):
orgpolicy.policies.create, orgpolicy.policies.delete, orgpolicy.policies.update, and orgpolicy.policy.get
GRRRR!!! This convoluted relationship between roles/permissions/users/access in GC is confusing to say the least.
Would someone please be so kind as to show me how to fix each problem above (in reverse order) so that I can run my container? Please include step-by-step detailed instructions so I can jump over this mess in one sitting.
If you need to issue gcloud CLI commands, here are the details:-
Project name my container
Project number (PII Removed by Staff)
Project ID my-container-(PII Removed by Staff)
Thanks!












