---
title: How to integrate Google Drive access in MDaemon Webmail
description: First available in MDaemon 23.0.0, Webmail users can be configured to integrate access to Google Drive.  Follow the steps below to setup the integration.
---

[Skip to content](https://knowledge.mdaemon.com/mdaemon-google-drive-setup#main-content)

[![](https://knowledge.mdaemon.com/hs-fs/hubfs/MDaemon-Technologies_logo.png?width=200&height=150&name=MDaemon-Technologies_logo.png)](https://mdaemon.com/)

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)

Open main navigation

Close main navigation

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)
- [Contact Us](https://mdaemon.com/pages/contact-us)

[Contact Us](https://mdaemon.com/pages/contact-us)

 Knowledge Base

- There are no suggestions because the search field is empty.

1. [Knowledge Base Home](https://knowledge.mdaemon.com/?hsLang=en)
2. [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en)

# How to integrate Google Drive access in MDaemon Webmail

## First available in MDaemon 23.0.0, Webmail users can be configured to integrate access to Google Drive. Follow the steps below to setup the integration.

1. Create a Google account or login to an existing account.
2. Go to the Google API Console using the link below. 
     - [https://console.cloud.google.com/projectselector2/apis/dashboard](https://console.cloud.google.com/projectselector2/apis/dashboard)
3. Click **Create Project** under  **Enabled APIs & services**
4. Create a name for the project. 
     - For example, MDaemon MD Webmail
5. If you have an organization, fill in the Location field.
6. Click **Create**
7. Click **+ Enable APIs and Services**
8. In the search field, type **Google Drive** and select **Google Drive API**
9. Click **Enable** on the Google Drive API page.
10. Click **Credentials** in the API APIs & Services menu
11. Click **+ Create Credentials** and then **API Key** in the dropdown list.  
    ![mdaemon\_google\_drive\_credential\_api](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_credential_api.png?width=688&height=292&name=mdaemon_google_drive_credential_api.png)
12. Copy the generated API Key
13. Click OAuth consent screen in the API APIs & Services menu.
14. Under **User Type**, choose **External**. 
      - You will need to add each user that wants to make use of the Google Drive integration in Webmail.
      - In the case that you do have an organization, choosing Internal is the better option.
15. Click **Create**
16. For the App information, use a unique name for the app. 
      - It can be the same as the name you chose for the Project.
17. Select a **User support email** address from the drop down list. 
18. No logo is required, however feel free to use your company logo.
19. In the **App domain** section, use your terms of service link from MDRA (if configured) and you can create a Privacy Policy in MDRA and get a link to it from there as well.
20. Add MDaemon domains in the **Authorized domains** section. 
21. Enter at least one email address to the **Developer contact information **text box. 
22. Click **Save and Continue**
23. Click **Add or Remove Scopes**
24. Copy and paste the following scopes in **Manually add scopes** text area.
    
    https://www.googleapis.com/auth/userinfo.email  
    https://www.googleapis.com/auth/drive.file  
    https://www.googleapis.com/auth/documents  
    https://www.googleapis.com/auth/drive  
    https://www.googleapis.com/auth/drive.readonly  
    https://www.googleapis.com/auth/drive.metadata  
    https://www.googleapis.com/auth/drive.photos.readonly  
    https://www.googleapis.com/auth/spreadsheets
25. click **Add To Table**
26. Click **Update**
27. Click **Save and Continue**
28. Click **Add Users** 
      - Add the users you want to be able to use the feature. Must be gmail addresses.
29. Click **Save and Continue**
30. Click **Credentials** in API APIs & Services menu.
31. Click **+ Create Credentials** and then **OAuth client ID** in the drop down.  
    ![mdaemon\_google\_drive\_credential\_oauth](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_credential_oauth.png?width=688&height=347&name=mdaemon_google_drive_credential_oauth.png)
32. Choose **Web application** from the Application type drop down.  
    ![mdaemon\_google\_drive\_web\_application](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_web_application.png?width=645&height=443&name=mdaemon_google_drive_web_application.png)
33. You can use the same name again.
34. Under Authorized redirect URIs, Click **+Add URI** 
      1. The URI looks like this: [https://YOUR\_FQDN/WorldClient.dll?View=OAuth&AuthRequest=GoogleDrive](https://YOUR_FQDN/WorldClient.dll?View=OAuth&AuthRequest=GoogleDrive&hsLang=en)
      2. An example can also be found in MDaemon Remote Administration (MDRA) at Main | Webmail Settings | Google Drive
35. Click **Create**
36. Copy the **Your Client ID** and **Your Client Secret** values.

In MDaemon Remote Administration:

1. Select **Main**
2. Select **Webmail Settings**
3. Select **Google Drive**
4. Check the **Enable Google Drive Integration** option.
5. Enter the API Key, Client ID, and Client Secret in their respective fields.  
   ![mdaemon\_google\_drive\_mdra](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_mdra.png?width=688&height=511&name=mdaemon_google_drive_mdra.png)
6. (Optional) Add a privacy policy by clicking on **Edit text of privacy policy**.
7. Click **Save**

When a valid user wants to integrate with Google Drive:

1. Login to Webmail
2. Click **Settings**
3. Click **Cloud Apps**
4. Click **Setup Google Drive  
   ![mdaemon\_google\_drive\_webmail\_setup\_google\_drive](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_setup_google_drive.png?width=659&height=537&name=mdaemon_google_drive_webmail_setup_google_drive.png)**
5. Review the information and click **Connect to GoogleDrive**.  
   ![mdaemon\_google\_drive\_webmail\_connect\_google\_drive](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_connect_google_drive.png?width=399&height=493&name=mdaemon_google_drive_webmail_connect_google_drive.png)
6. Choose the Google Account and choose what Webmail can Access.
7. Click **Continue**
8. When you see the window below, the setup process is complete.  
   ![mdaemon\_google\_drive\_webmail\_confirmed](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_confirmed.png?width=398&height=220&name=mdaemon_google_drive_webmail_confirmed.png)

To Disconnect Google Drive integration:

1. Login to Webmail
2. Click **Settings**
3. Click **Cloud Apps**
4. Click **Disconnect Google Drive**  
   ![mdaemon\_google\_drive\_webmail\_disconnect](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_disconnect.png?width=623&height=172&name=mdaemon_google_drive_webmail_disconnect.png)

To save an email attachment to Google Drive using a connected account (Pro theme):

1. Login to Webmail 
2. Open a message with an attachment.
3. Click on the Google Drive icon next to the attachment name.   
   ![mdaemon\_google\_drive\_webmail\_save](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_save.png?width=375&height=73&name=mdaemon_google_drive_webmail_save.png)
4. Click Yes to confirm saving the attachment to Google Drive.  
   ![mdaemon\_google\_drive\_webmail\_save\_confirmation](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_save_confirmation.png?width=529&height=121&name=mdaemon_google_drive_webmail_save_confirmation.png)
5. You'll see a pop-up notification in Webmail stating the attachment was saved.  
   ![mdaemon\_google\_drive\_webmail\_save\_notification](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_google_drive_webmail_save_notification.png?width=296&height=134&name=mdaemon_google_drive_webmail_save_notification.png)

 

- [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#main-content)

    - [Mobile Device Management](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#mobile-device-management)
- [MDaemon AntiVirus (SecurityPlus)](https://knowledge.mdaemon.com/mdaemon-antivirus-securityplus?hsLang=en)
- [ActiveSync for MDaemon](https://knowledge.mdaemon.com/activesync-for-mdaemon?hsLang=en)
- [MDaemon Connector for Outlook (Outlook Connector)](https://knowledge.mdaemon.com/mdaemon-connector-for-outlook-outlook-connector?hsLang=en)
- [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)
- [RelayFax Network Software](https://knowledge.mdaemon.com/relayfax-network-software?hsLang=en)

[![Chill listening crop-3](https://knowledge.mdaemon.com/hs-fs/hubfs/belch.io/template-assets/MDaemon-Technologies_logo.png?width=199&height=41&name=MDaemon-Technologies_logo.png "Chill listening crop-3")](https://www.mdaemon.com)

[Knowledge Base Home](https://knowledge.mdaemon.com?hsLang=en)

<https://www.youtube.com/c/MDaemonTechnologies> <https://www.linkedin.com/company/mdaemon-technologies/> <https://www.facebook.com/MDaemon.Technologies/> <https://www.twitter.com/MDaemon_Email>

Copyright © 2025, MDaemon Technologies