Configuring the Google Integration¶
How to register the app in Google Cloud, obtain OAuth2 credentials, and verify that jobs are scheduled correctly.
1) Project and APIs in Google Cloud¶
- Open Google Cloud Console and create a New Project.
- In API & Services → Library enable:
- Google Calendar API
- Google People API (contacts)
- Gmail API (if mail is used)
2) OAuth consent screen¶
- In OAuth consent screen choose the user type (Internal for corporate domain, otherwise External).
- Fill in the app name and contact email.
- In Scopes add the permissions that match the integration:
calendar,contacts/people,gmail.
3) OAuth Client ID¶
- In Credentials click Create Credentials → OAuth client ID.
- Choose Web application.
- In Authorized redirect URIs paste your CRM URL + the callback shown in CRM (Integrations → Google → Redirect URI).
- Example:
https://crm.yourcompany.com/api/v1/Google/redirect - Note the Client ID and Client Secret values.
4) Configure AutoCRM¶
- Go to Admin → Integrations → Google.
- Enter
clientIdandclientSecret. Other parameters (endpoints, scopes) are prefilled fromintegrations/Google.json. - Save. CRM then shows the Redirect URI – share it with users.
5) Verify jobs¶
- In Admin → Scheduled Jobs check that
GoogleJob(daily 02:15) andSynchronizeEventsWithGoogleCalendar(*/10 min, Active) exist. - If a job is missing, rerun the module install script or create it manually with the same name/class.
Operational tips¶
- For Google Workspace, publish the app (Production) and, if needed, domain-approve it.
- When rotating
clientSecret, update it in CRM as well – users can reconnect without further changes.