Accessing a Google workspace domain apps script url from GCP

29 views
Skip to first unread message

Michail Kotantakis

unread,
Mar 31, 2023, 9:33:42 PM3/31/23
to Google Apps Script Community
Hi team

We have a google worksapce domain in my workplace and the deployed apps scripts are only accessible from within the workspace domain

This time we need to receive a webhook from jira which is not in our allowlist in the workspace admin.

I am thinking if there is any possibility to make this happen by using a cloud function which has a public url and then forward the payload to the apps script url 
I have tried by creating a gcp project, and a temp ouath2 consnet screen and added the project number to the apps script. I have done a cloud function which is proven to forward the payload and work as expcted since for the test i used a public apps script url and worked.

The problem is that i cannot figure out how to make the cloud function to speak to the workspace apps script url which is available only within the workspace domain.
there should be a way if they both are in the same gcp right? or do i have it wrong? Can someone please if has done a similar implementation to advise with the steps?

Or if there is another solutions that won't perplex the situation that much?

Thanks in advance

DimuDesigns

unread,
Mar 31, 2023, 9:39:18 PM3/31/23
to Google Apps Script Community
You have the option of migrating the logic in the GAS script to your Cloud Function and just cut GAS out of the equation altogether.

Michail Kotantakis

unread,
Apr 1, 2023, 12:05:43 AM4/1/23
to google-apps-sc...@googlegroups.com
Thanks for the tip.
All I do in GAS is to filter the payload from a Jira webhook and create an event in Google calendar.
So this can be done as well with cloud function? 

Alternatively is there any other way to access an apps script web app URL which is deployed only from within the gspace access?
Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/LJQJU4jQuHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/4ca1741a-192a-4afc-aa6c-b33e24d963e6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages