Hi @cbyrd
Given that the 400 error is coming from the Google API, I'd start off by checking for config issues on the Google side.
- Check API Permissions:
- Verify API Scopes:
- Double-check that the OAuth 2.0 scopes configured for the service account include the necessary permissions. You might need to add or adjust scopes in the Google Cloud Console.
- Customer ID:
- Ensure that the customer parameter in the API request is correct. It should be the unique ID of your Google Workspace account. You can find this ID in the Admin console under Account settings.
- View Type:
- The viewType parameter can be either admin_view or domain_public. Make sure that the view type you are using is appropriate for your use case and that the account has the necessary permissions to access the data with that view type.
- API Quotas and Limits:
- Check if you are hitting any API quotas or limits. Google APIs have usage limits, and exceeding them can result in errors.
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will