Many thanks to Carlos Pineda, Senior Solutions Advisor at Zimbra, for this post!
Did you know that you can sync your Gmail calendar to your Zimbra account, starting with Zimbra 8.8.9? This means that you can see your Zimbra events in your Gmail calendar AND your Gmail events in your Zimbra calendar. Any change you make to one calendar will sync to the other including new events, updates to events, and deleted events.
There are steps to perform in Google, on the Zimbra server and in the Zimbra Web Client. Let’s start with the steps in Google.
Steps in Google
1. Create a Project in the Google Developer Console.
- Go to https://console.developers.google.com/
- Login using your gmail account.
- Create a Project.
2. Create credentials to access Google’s APIs. A client ID and client secret are required to authenticte users and gain access to Google’s APIs.
- Specify OAuth consent screen details.
- Create credentials specifying your ZCS environment; for example, https://mail.zimbra.io
3. Enable CalDAV API.
Steps on the ZCS Server
- Set zimbraOAuthConsumerAPIScope on your domain.
zmprov md <your domain> zimbraOAuthConsumerAPIScope ‘https://www.googleapis.com/auth/calendar:google_caldav’
- Set zimbraOAuthConsumerCredentials on your domain. Specify your client id and client secret.
zmprov md <your domain> zimbraOAuthConsumerCredentials <client id>:<secret>:google
- Set zimbraOAuthConsumerRedirectUri on your domain.
zmprov md <your domain> zimbraOAuthConsumerRedirectUri ‘<hostname>/service/extension/oauth2/authenticate/google:google’
zmprov md zimbra.io zimbraOAuthConsumerRedirectUri ‘https://mail.zimbra.io/service/extension/oauth2/authenticate/google:google’
Steps in the Zimbra Web Client
- Login to your Zimbra Web Client.
- Authorize Google to visit the following URL, specifying your hostname: https://<hostname>/service/extension/oauth2/authorize/google?type=caldav
- Select your Gmail account, and you will see the Gmail Calendar in the Zimbra Calendar.
- You can create an event from Zimbra into Gmail Calendar or create an appointment in Gmail Calendar, and see it from Zimbra.
Calendar View in Zimbra
Calendar View in Gmail
Thanks for reading,
Your Zimbra Friends & Colleagues