Google Drive integration

Google Drive files can be embedded in intranet pages using the Google Drive Card. To use the Google Drive Card, Google Drive integration must first be set up. Follow the instructions below to set up Google Drive integration.

For user instructions on adding the Google Drive Card to a page, see Google Drive Card.

Configure Google Apis to allow access from ThoughtFarmer

  1. Sign in to your organization's Google account.
  2. Go to Google APIs Google Developers Console.
  3. Create a project. Type a project name.
  4. With your new project selected, navigate to the Credentials tab on the left. Select the OAuth consent screen tab at the top.
  5. Type a Product name shown to users, for example, the name of your intranet or ThoughtFarmer site.
  6. Optionally, add a Product logo URL.

  7. Select the Credentials tab at the top. Click Create credentials > OAuth client ID in the pop-up window that appears.

  8. Under Application type, select the radio button for Web application.

  9. Add a Name.
  10. Enter the ThoughtFarmer site homepage in the Authorized JavaScript origins and Authorized redirect URLs sections.
  11. Click Create.
  12. Copy the Client ID value in the pop-up window that appears, and click OK.

Enable Google Drive API

  1. Select the Dashboard tab on the left.
  2. Search for the Google Drive API and enable it.


Enable Google Drive integration in ThoughtFarmer

  1. On your ThoughtFarmer intranet site, go to the Administration panel: Advanced Options section > Configuration settings page.
  2. Search for the config setting googleDrive.clientId , click in the Value column and paste the Client ID value that you copied earlier. Click Save.
  3. Search for the config setting googleDrive.enabled and enable it by setting the value to true. Click Save.

Items to note

  • Google may take some time to update their servers, so the Google Drive Card may not work immediately.
  • When logging in, users will see the security warning, pictured below. To log in, users need to click Advanced > Go to [Google App name] (unsafe). Google has instructions for removing this warning.