Dear Team,
I am new to GCP. I am working on Cloud Function. Just created a gen2 cloud function. I tried to access the cloud function url . I am getting "Your client does not have permission to get URL / from this server"
I was unable to give permission to all users with Cloud Function Invoker due to org policy - “Set up the Domain restricted sharing constraint “
I tried to customize “Set up the Domain restricted sharing constraint “ policy to allow allUsers (public access) for testing. Still I am getting the permission issue.
I am unable to proceed further..
Please advise.
Thanks!
By default it might be using only authenticated call. You can change settings to allow unauthenticated call in cloud function trigger settings
I faced exactly the same issue. It is set on unauthorized calls but I'm still getting this error.
I got the same error after granting the permission to the user, meaning after adding the user to the Cloud Functions Invoker role and making the http call (it's an http trigger function) with an oauth token obtained on behalf of the user. It's nice if there was example code for accomplishing that, for those who do require authenticated access.