Set up the Mattermost Google Calendar plugin#

plans-img Available on all plans

deployment-img Cloud and self-hosted deployments

Setting up the Mattermost Google Calendar integration requires the following 3 steps:

  1. (Mattermost admin) Install the Google Calendar plugin on your Mattermost instance.

  2. (Google admin) Create a Google Calendar service by creating a Google Cloud project.

  3. (Mattermost admin) Configure the Mattermost Google Calendar plugin.

Once setup is complete, see the get started section below to learn how to use the plugin.

Install the Mattermost Google Calendar plugin#

To install the Mattermost Google Calendar plugin on your Mattermost server:

  1. Log in to your Mattermost workspace as a system administrator.

  2. Download the latest version of the plugin binary release compatible with Mattermost v8.x and later.

Tip

If you are using an earlier version of Mattermost, follow our documentation to upgrade to Mattermost v8.x or later.

Create a Google Calendar service#

  1. In a browser, as a Google admin, create a project in the Google Cloud Console by going to https://console.cloud.google.com/, selecting the project option in the top left corner of the screen, then selecting New Project option in the top right corner of the popup window.

In Google Cloud Console, select New Project to create up a new project. Use Google Cloud Console to set up a new project.
  1. When your project is created, go to APIs & Services to search for and enable the following 2 services:

  • Google Calendar API: Used for anything related to the calendar and events.

  • Google People API: Used to link your Mattermost account to your Google account.

In Google Cloud Console, select APIs & Services to search for services to enable. In Google Cloud Console, search for and enable the Google Calendar API. In Google Cloud Console, search for and enable the Google People API.
  1. Choose how to configure and register the application by selecting the user type as Internal or External, then select Create.

On the OAuth consent screen, configure and register the application as internal or external.
  1. When prompted, set the following app information:

  • App name: Google Calendar Mattermost Plugin

  • User support email

  • Developer contact information

  • Populate the remaining fields as needed.

Configure the consent screen app name and user support email. Configure the consent screen developer contact information.
  1. Under Credentials, create new OAuth 2.0 credentials by selecting Create Credentials > OAuth client ID.

  • Under Application type, select Web Application.

  • Under Authorized redirect URIs add https://(MM_SITE_URL)/plugins/com.mattermost.gcal/oauth2/complete and replace MM_SITE_URL with your Mattermost Server Site URL.

Under Credentials, select Web application. Configure the authorized redirect URI for Mattermost.
  1. Once the OAuth client is created, make a copy of the Client ID and Client Secret values for the next and final setup step below.

Copy the Client ID and Client secret values. You'll need these values in the next step.

Configure the Mattermost Google Calendar plugin#

In Mattermost, configure the plugin by going to System Console > Plugin Management > Google Calendar, enter the following values, and select Save.

  • Enable Plugin: Select true to enable the plugin for your Mattermost instance.

  • Admin User IDs: Specify the user IDs who are authorized to manage the plugin in addition to Mattermost system admins. Separate multiple user IDs with commas. Go to System Console > User Management > Users to obtain a user’s ID.

  • Encryption key: Generate an encryption key used to store data in the database. Regenerating this value forces users to re-link their Google Calendars in Mattermost.

  • Google Application Client ID: Paste the Client ID value from the Google Cloud Console.

  • Google Client Secret: Paste the Client Secret value from the Google Cloud Console.

Note

Additional Mattermost Google Calendar configuration options are available for troubleshooting, including the admin log level of plugin logs, and displaying full or partial context for admin log messages. See the plugin configuration settings documentation for details.

Get started with the plugin#

See the use Mattermost Google Calendar plugin documentation for details on how users can link their Google Calendar to Mattermost, customize plugin preferences, and create calendar events in Mattermost that are added to their Google Calendar automatically.

Troubleshooting#

If you encounter issues when connecting calendars, creating events, inviting guests to events, or linking channels, we recommend restarting the plugin as a Mattermost system admin.

  1. Go to System Console > Plugins > Plugin Management.

  2. Under Installed Plugins, scroll to the Google Calendar section, select Disable then wait for the State to change to Not running.

  3. Select Enable and wait for the State to change to Running.

Get help#

If you face any issues while installing the Mattermost Google Calendar plugin, you can either: