How to Enable Deletion Scope in Google Chat API with Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

Hey All, we are trying to use a Google Chat API built into Pipedream but it does not offer the deletion scope which is what we need to be able to delete a space. Can anyone speak to how we can get this functioning?

Hi, I’ve created a ticket to request new scope here: https://github.com/PipedreamHQ/pipedream/issues/9370

Kindly subscribe to be notified when the ticket is done. Thank you

See above for Leo’s comment

Thank you. Is that something that happens within a couple days or is that a few months that we could anticipate that happening?

Hi It should be completed within a week

Thank you!

Thanks and @U03CXTHK4RF

any update on timeline for getting this oauth scope added? Thanks!

can you help me understand when this will be complete? Thanks!

Hi , sorry for the late response, I’ll check with the internal team

Thank you

Hi David, I looked into adding the scope you requested, https://www.googleapis.com/auth/chat.delete and it is a Restricted scope, which will require us to go through a verification process and review with Google. This can be a fairly lengthy process with a lot of back and forth between our team and Google’s, and this has historically taken weeks up to a few months to push through to completion.

An alternative to this would be for me to configure a Google Chat (Developer App) setup, similar to what we have for Google Fit (Developer App) or Gmail (Developer App) - where you would need to configure the new custom app on the Google side, and you would connect your own app (with a client id and client secret), with the scopes of your choosing. If you are only using the application for yourself or your team, this could be the easiest path forward as you would not need to go through the stringent process of verification as Google reserves an exemption for personal / limited use cases.

the second option would be fine. This is for internal use only and our devs could handle building out the custom deletion scope necessary. Please let me know the timeline on getting this done so we can get this worked into our timeline. Thanks!

I can have something ready along with step-by-step instructions by mid-next week if that timeframe works for you!

Yeah, that would be perfect. Can you please ping me once it is ready? Thanks!

Will follow up in this thread!

Any update on this? Thanks!

Hi David, hoping to wrap this up by EoD or tomorrow. Will ping in this thread when complete!

Thanks!

Hi , I’ve set up the scaffolding for Google Chat (Developer App) - I have to write documentation on how to set this up on the GCP side of things, but if you are familiar with configuring applications on the Google Cloud side, or feel like getting started ahead of the instructions, the setup is very similar to Google Fit

(https://pipedream.com/apps/google-fit-developer-app#getting-started)

Here is the link for Google Chat (Developer App);

The primary differences are: