I'm developing a feature that reads emails from other workspaces for auditing purpose, and want to know how I can make use of service account for accessing emails. I'll explain my approach first, and articulate more on the question.
And Here is my question.
After registering my App to google workspace marketplace, (which I haven't done yet) and after the workspace admin downloading and consenting with the scops of the app, with what do I make api calls? Is it an access token from OAuth flow when asking for the app's scope, or a same old json key file I created for service account?
with what do I make api calls? Is it an access token from OAuth flow when asking for the app's scope, or a same old json key file I created for service account?
The same service account with the same private key, if it works for your test domain it will work when installed from the marketplace. You only need to find (or ask) the email addresses of the users you want to audit.