UI has instructions for the steps up to register your rancher server domain and creating the OAuth credentials. These are the steps for generating the service account credential file:
- Be logged in to your gsuite domain as the admin
- Navigate to Service accounts page: https://console.developers.google.com/iam-admin/serviceaccounts
- Create a service account.
Create Service account - page 1
Create Service account - page 2- no need to specify roles