Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
deleted 2 characters in body
Source Link
Doug Stevenson
  • 320.5k
  • 37
  • 458
  • 474

I'm trying to deploy a Cloud Function named generate_image with gcloud functions deploy. Here is the command I am trying:

gcloud functions deploy generate_image \  
    --gen2 \
    --runtime=python310 \
    --region=europe-west3 \
    --source=. \
    --entry-point=generate_image \
    --trigger-http \
    --allow-unauthenticated

However, I'm encountering the following error:

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.]

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.]

I understand this error indicates an organization policy restricting identities allowed to deploy functions. I've checked my IAM permissions and confirmed I have the necessary roles (I am owner on my project). However, the issue persists.

Can anyone provide insights on how to resolve this error and successfully deploy my Cloud Function?

I'm trying to deploy a Cloud Function named generate_image with gcloud functions deploy. Here is the command I am trying:

gcloud functions deploy generate_image \  
    --gen2 \
    --runtime=python310 \
    --region=europe-west3 \
    --source=. \
    --entry-point=generate_image \
    --trigger-http \
    --allow-unauthenticated

However, I'm encountering the following error:

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.]

I understand this error indicates an organization policy restricting identities allowed to deploy functions. I've checked my IAM permissions and confirmed I have the necessary roles (I am owner on my project). However, the issue persists.

Can anyone provide insights on how to resolve this error and successfully deploy my Cloud Function?

I'm trying to deploy a Cloud Function named generate_image with gcloud functions deploy. Here is the command I am trying:

gcloud functions deploy generate_image \  
    --gen2 \
    --runtime=python310 \
    --region=europe-west3 \
    --source=. \
    --entry-point=generate_image \
    --trigger-http \
    --allow-unauthenticated

However, I'm encountering the following error:

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.]

I understand this error indicates an organization policy restricting identities allowed to deploy functions. I've checked my IAM permissions and confirmed I have the necessary roles (I am owner on my project). However, the issue persists.

Can anyone provide insights on how to resolve this error and successfully deploy my Cloud Function?

Source Link
DarioB
  • 1.6k
  • 3
  • 28
  • 57

gcloud functions deploy fails: One or more users named in the policy do not belong to a permitted customer

I'm trying to deploy a Cloud Function named generate_image with gcloud functions deploy. Here is the command I am trying:

gcloud functions deploy generate_image \  
    --gen2 \
    --runtime=python310 \
    --region=europe-west3 \
    --source=. \
    --entry-point=generate_image \
    --trigger-http \
    --allow-unauthenticated

However, I'm encountering the following error:

ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Ok], message=[One or more users named in the policy do not belong to a permitted customer, perhaps due to an organization policy.]

I understand this error indicates an organization policy restricting identities allowed to deploy functions. I've checked my IAM permissions and confirmed I have the necessary roles (I am owner on my project). However, the issue persists.

Can anyone provide insights on how to resolve this error and successfully deploy my Cloud Function?