Give Pub/Sub Publisher permission to Gmail-API outside my goodle cloud project

454 views
Skip to first unread message

lizzy leiz

unread,
Mar 3, 2020, 2:44:08 PM3/3/20
to Google Cloud Pub/Sub Discussions
Hello!

I couldn't find documentation to solve my need.

I have a Pub/Sub in Project-A in my own cloud properly set up. Now I have clients (other companies) that have their own projects and google clouds, I want their Gmail-API to be able to publish to my Pub/Sub.
What this mean is that I have to give Pub/Sub Publisher permission to a Gmail-API outside the Pub/Sub cloud.

Is that possible?

The documentation from Gmail-API guide says that I can give access to a Gmail-API inside the same Project/Cloud granting privileges to gmail-a...@system.gserviceaccount.com but that doesn't tell me how to specify Gmail-APIs from outside my cloud.

Thank you for your time and let me know if I'm missing something that could clarify my question further

Regards
Message has been deleted

fgervais

unread,
Mar 9, 2020, 2:18:41 PM3/9/20
to Google Cloud Pub/Sub Discussions

Hello Lizzy,


According to this [1] documentation, what you need is to grant “publish” privileges to gmail-a...@system.gserviceaccount.com.


Since this is mainly a question related to GSuite (your question is regarding how to interact with the Gmail API), I would recommend you reach out for help here [2] for any further questions.


Regards,


Frederic


[1] https://developers.google.com/gmail/api/guides/push#grant_publish_rights_on_your_topic

[2] https://developers.google.com/gmail/api/support



On Tuesday, March 3, 2020 at 2:44:08 PM UTC-5, lizzy leiz wrote:
Hello!

I couldn't find documentation to solve my need.

I have a Pub/Sub in Project-A in my own cloud properly set up. Now I have clients (other companies) that have their own projects and google clouds, I want their Gmail-API to be able to publish to my Pub/Sub.
What this mean is that I have to give Pub/Sub Publisher permission to a Gmail-API outside the Pub/Sub cloud.

Is that possible?

The documentation from Gmail-API guide says that I can give access to a Gmail-API inside the same Project/Cloud granting privileges to gmail-api-push@system.gserviceaccount.com but that doesn't tell me how to specify Gmail-APIs from outside my cloud.
Reply all
Reply to author
Forward
0 new messages