This section walks through setting up the Gmail connector using a Service Account.
More info on Service Accounts can be found here.
A Google Workspace is required.If you’d rather use an individuals account + OAuth to access Gmail, checkout the section
here.
Click Add new, fill in the client ID with the Unique ID of the Service account
Copy this comma separated list of scopes and pasted it into field OAuth scopes:
https://www.googleapis.com/auth/gmail.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly