This assumes you've already created a G Suite user and can successfully log into their e-mail manually.
Enable the OAuth extension.
Go to Administer menu » System Settings » OAuth.
Click on Google Mail.
If the steps belong don't work, check the "Prerequisites" section of the "Using OAuth 2.0 for Web Server ...