Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't send test messsage to Pub/Sub Topic with Google Workspace Account

Hello, I created a simple Go Application that starts Push Notifications from Gmail to Cloud Pub/Sub with the watch method. That works totally fine for my personal google Account but when I try the same with my Google Workspace Account from my company I get the following error:

 

googleapi: Error 403: Error sending test message to Cloud PubSub projects/clickup-ticket-creator/topics/gmail-messages : User not authorized to perform this action., forbidden

 

I set up bot GCP Projects in the totally same manner, bot grant the ".../auth/gmail.readonly" API Scope at the oauth consent screen and use an OAuth2 Key. The only difference is that the OAuth Consent Srceen is set to internal for the one in the workspace account, I already tried switching the usage type to external and adding the User i use to the allowed users but this also won't work.
I'm out of ideas.

3 1 451
1 REPLY 1