I created my service account in google cloud console and gave the account owner role. When i create the connected system and i test the connection it works good but when I use it on an integration it crashes. I used to do this by my own with a normal connected system and it worked good, but now I need to build it with a service account.
Discussion posts and replies are publicly visible
I think there is not much any of us could add. The error message is pretty clear. It seems like your service account does not have permission to perform that action.
I literally gave owner role to the service account and somehow it doesn´t work, I followed Google documentation.
Hi carlo, i've got the same problem. What i've achieved is a problem related to the OAuth consential credits, in the API & service part in google cloud. The request /auth/gmail.modify it's a restricted gmail scope: this is meant that, if your application is an external app, it's required 2-4 weeks for your project to be verified by google and this operation may include a cost(from 15k to 75k euros), despite you're the IAM of the project.
So in this period you may not have the required permissions. You can add additional scope in the 2nd step of the verification of your app.
Replaced the scope with https://www.googleapis.com/auth/gmail.labels and it still dont work, same error message