Pub/Sub (Error 7) Permission Denied - User not authorized to perform the action

I am trying to make a trigger of google cloud that emits messages from a pub/sub topic.
I have created a service account and pasted json key in configuration of trigger. But when I try to search for an existing pub/sub topic it says (Error 7) Permission Denied - User not authorized to perform the action. I feel I have missed giving some permission access or roles but not sure what are they.

Hi @radhikakondapaneni

Try reconnecting your Google Cloud account and make sure they you check all of the checkboxes prompted.

They are not checked by default and this leads to confusing errors like these.

That may be the issue, hope this helps!

I have resolved the error. It is because I have not given the role as pub/sub admin while creating service account in google cloud platform.

1 Like