Hi everyone,
i want to use activepieces to label emails for me, but the Gmail piece does not seem to have sufficient permissions to do this via custom API call. Is there a known workaround for this? Maybe i just missed something. According to the API Docs we need either https://mail.google.com/ or https://www.googleapis.com/auth/gmail.modify to be in scope to hit the correct endpoint (https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/modify)
I don’t think we have this scope approved by Google, and it might not be straightforward for us to add. One workaround, though a bit annoying, is to click on “Connect with your own credentials” and create your own client ID and client secret. This way, you don’t need approval from Google since you are using it for yourself, making it a faster solution.
I tried making a custom “OAuth Client” in Google Console and using the custom connect feature in ActivePieces, but whatever I choose of scopes inside Google, activepieces seems to always just request the same scopes, which seems to not include either of
https://www.googleapis.com/auth/gmail.modify
https://mail.google.com/
Even if I remove all scopes from the custom app, activepieces requests the same scopes every time.