The Google Drive app is currently in Beta. Some features may not function as expected.
The Rocket.Chat Google Drive app brings a seamless Google Drive experience directly into your Rocket.Chat workspace. This integration allows users to do the following without leaving Rocket.Chat:
View and open Google Drive files and their details.
Share files and manage sharing permissions.
Create new files.
Prerequisites
Your workspace must be on a publicly available domain.
A Google Cloud project is required to obtain the OAuth2 credentials.
Install the Google Drive App
Go to Administration > Apps > Marketplace > Explore.
Search for and select the Google Drive app.
Click Install and Agree to accept the required permissions.
After installing, you will receive a direct message from
google-drive.bot
with instructions on how to get started.Click Setup to view the instructions. Copy the redirect_url displayed and save for later.
Get Google Cloud client credentials
To enable Rocket.Chat to connect with Google Calendar, create OAuth credentials in your Google Cloud project:
Go to the Google Cloud Console and either create a new project or select an existing one.
From the sidebar, navigate to APIs & Services > OAuth consent screen.
Click Get Started and fill in the required fields. Click Create to finish setting up the OAuth consent screen.
Next, go to Clients and click Create Client.
Select Web application as the application type and fill in the required details. Add the redirect_url you copied from
google-drive.bot
as the Authorized redirect URIs. Click Create.Copy the generated Client ID and Client Secret. You will need them for the next configuration step.
To enable Google Drive API on your project:
Go to APIs & Services → Library.
Search for Google Drive API and click Enable.
Configure the Google Drive app
On the Google Drive App Info screen, navigate to Settings.
Paste the Client ID and Client Secret you copied from the Google Cloud Console.
Click Save changes.
At this point, the app is configured at the workspace level. The next step is for users to authorize their accounts and start using the app.