GCP - IAM policy update failed - Allow unauthenticated invocations

118 Views Asked by At

I'm the owner of my organisation, but when I try to make my cloud run services public (security -> Allow unauthenticated invocations), I get this error:

IAM policy update failed A domain restriction organisation policy is in place. Only principals in allowed domains can be added as principals in the policy. Correct the principal emails and try again.

I don't understand the error, because I am connected as the owner. I created this organisation a few days ago, I immediately had this problem.

I've tried lots of commands and checking IAM rights, but nothing works.

I'm totally stuck,I need your help, please.

I tried update I AM roles via commands, check DNS records (squarespace) & domain. Everything looks good for me. But unfortunately the error persists.

1

There are 1 best solutions below

0
Alexandre On

Steps that solved my problem :

Go to : I AM & Admin > Organization policies > "Domain restricted sharing"

Applies to : Customize (unchanged) Policy enforcement : replace (unchanged) Rules : add a rule > Policy values : Allow All