# Integration with Google Drive

### **Overview**

Google Drive is a cloud-based file storage and synchronization service developed by Google. It allows users to store files, synchronize them across multiple devices, and share them easily. It also enables collaborative editing of documents, spreadsheets, and presentations.

<figure><img src="/files/rp6uw0i48yxySEIG0RRv" alt=""><figcaption></figcaption></figure>

MangoApps provides integration with Google Drive, allowing users to attach files from Google Drive to their work within the MangoApps platform. This enables smooth collaboration and efficient file management.

***

### Pre-requisites

* A Google Drive account (personal or business)
* Admin role permissions within MangoApps to enable the Google Drive integration

***

### Admin Configuration Within MangoApps

This step must be completed by a MangoApps Network Admin.

Log in to MangoApps as a network admin and navigate to the account menu. Select **Manage Domain** to access the **Admin Portal**.

<figure><img src="/files/4v596rhxplhGIqCgczvm" alt="" width="563"><figcaption></figcaption></figure>

In the Admin Portal, select **Modules** from the left-hand pane and click on **Files** to open file management settings.

From here, navigate to the **External Document Repositories** tab.

<figure><img src="/files/EGUoHh7WNvEAMDsPcjqK" alt="" width="563"><figcaption></figcaption></figure>

Select the checkbox for 'Enable Google Drive Integration'. This will enable Google Drive as a document repository for your company. When enabled, your users will be able to access files from their Google Drive account inside MangoApps, attach these files to updates, wikis, posts, direct messages etc. Additionally they will be able to publish files for which they have owner privileges back to their Google Drive account.

Once the above configurations are implemented in the Admin Portal, the users can be notified that the integration is enabled so that they can start connecting their Google Drive with MangoApps.

***

### User Configuration

Once the admin has enabled Google Drive integration, users can connect their Google Drive account to MangoApps by following these steps:

Log in to MangoApps and click on 'Compose' to create a Post, Private Message, or Team Update.

In the **Attach** section, select the **Google Drive** tab. You may need to click the **Attach button** first in order to make this section appear.

<figure><img src="/files/loA5rKt3mRh0GuMQJEYl" alt="" width="563"><figcaption></figcaption></figure>

Click the **Connect to Google Drive** button. A pop-up window will appear. Sign in to your Google account and grant permissions to MangoApps.

Once connected, Google Drive files and folders will be available for attachment.

<img src="/files/zENLkOtrG6CBPxma7MfI" alt="" width="563">

Choose the files to attach and click **Done**. The files will appear beneath the update.

***

### Publishing Files from MangoApps to Google Drive

MangoApps allows users to publish files from MangoApps to Google Drive.

In MangoApps, click **Files** from the navigation menu.

<figure><img src="/files/R0OZ4X5JUBVowNrviLTi" alt="" width="563"><figcaption></figcaption></figure>

Locate the file you want to publish and click on the three dots to open the options menu. Select **Publish** and choose **Google Drive**.

<figure><img src="/files/VfcoqzS7QghcXUubCnBV" alt="" width="563"><figcaption></figcaption></figure>

Select the destination folder in Google Drive and click **Publish**.

After a few minutes, refresh **Google Drive** to see the uploaded file.

***

### Actions That Support Attaching Files from Google Drive

Users can attach Google Drive files in the following MangoApps features:

| Posts               | Private messages | Team Updates      |
| ------------------- | ---------------- | ----------------- |
| Pages               | Wikis            | Tasks             |
| Newsfeed Activities | Calendar Events  | Ideas & Campaigns |
| Questions           | Ballots          | Polls             |

***

### File Access Settings

The shared Google Drive files are set to "Anyone who has the link can access. No Sign-In required" within MangoApps to ensure accessibility for all users.

***

### **Disconnecting Google Drive from MangoApps**

To disconnect Google Drive from your domain, admin users can navigate to the Admin Portal > Modules > Files > External Repositories and toggle the Google Drive connection to the OFF state.

<figure><img src="/files/N7x731YY8p1s27qTKNKn" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.mangoapps.com/integrations-guide/file-storage-and-sharing/integration-with-google-drive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
