Articles with the tag:
Close
Changelog
Close
Try in the cloud
Try in the cloud

How to edit documents from Google Drive in ONLYOFFICE

You have a Google account and want to edit your documents using ONLYOFFICE? Follow this step-by-step guide to find out how to edit documents stored in your Google from the Documents portal module.

This option is available for ONLYOFFICE Workspace/ONLYOFFICE Workspace Enterprise Edition users only.

Cloud users can skip this section and proceed with Connect your Google Drive to ONLYOFFICE step.

Creating authorization keys

You will have to setup authorization keys for Google Drive. Follow these steps:

  1. Go to Google Cloud Platform console.
  2. Sign in to your account.
  3. Click the Create project button. Enter the Project Name in the corresponding field and click the Create button. Once the project is created, you'll see a notification in the upper right corner of the page. Click on the project name to open it.
  4. Enable necessary APIs:
    • Click the navigation menu in the upper left corner and select the APIs and services -> Dashboard section.
    • Click the Enable APIs and services button on the top.
    • In the Google Workspace section, click the Google Drive API link, then click the Enable button.
  5. Configure the OAuth consent screen, add a scope and test users:
    • Click the navigation menu in the upper left corner and select the APIs and services -> OAuth consent screen section.
    • Choose the User Type and click Create.
    • In the App information section, specify the App name and User support email in the corresponding fields.
    • In the App domain section, go to the Authorized domains subsection. Click the Add domain button and specify the onlyoffice.com domain in the entry field.
    • Specify an email in the Developer contact information section.
    • Click the Save and continue button.
    • Click the Add or remove scopes button. On a new screen that opens, go to the Manually add scopes section, specify https://www.googleapis.com/auth/drive in the entry field and click the Add to table button, then click Update.
    • Click the Save and continue button.
    • In the Test users section, click the Add users button. Specify necessary Google accounts and click the Add button.
    • Click the Save and continue button.
  6. Get Client ID and Client secret:
    • Click the navigation menu in the upper left corner and select the APIs and services -> Credentials section.
    • Click the Create credentials button and choose the OAuth client ID option in the list.
    • In the Application type list, select the Web application option.
    • In the Authorized JavaScript origins section, click the Add URI button and enter "https://service.onlyoffice.com" in the entry field.
    • In the Authorized redirect URIs section, click the Add URI button and enter "https://service.onlyoffice.com/oauth2.aspx" in the entry field.
    • Click the Create button.
    • Your Client ID and Client secret will be displayed in a new window. Copy or write down them.

Connecting the Google Drive service

  1. First of all go to the Settings section. To do that click the Settings icon icon in the right upper corner.
  2. Switch to the Integration tab.
  3. Open the Third-Party Services page.
  4. Click the sliding button right of the Google Drive logo.
  5. Enter your keys and click the Enable button.

Connect your Google account to ONLYOFFICE

  1. In the left sidebar of the Documents, just below the text Connect, click on the Google Drive icon Google Drive icon.
  2. Login to your Google account.
  3. Allow ONLYOFFICE to connect to your Google Drive by clicking the button. Your Google Drive documents will be shown in ONLYOFFICE documents as a folder.
  4. Change the folder‘s name, if necessary.
  5. If you want the Google Drive documents to be visible for anyone, click the Make shared checkbox and put into the Common Documents folder. If not checked, your Google Drive account will only be visible to you.
    This step is not available while working in ONLYOFFICE Personal.
  6. Click Save.

Edit your Google Drive documents

  1. Locate the Google Drive folder and open it.
  2. Browse to the file you want to edit and click it.
    If necessary, a dialog will tell you that the document will be converted to the OpenOffice XML format for faster viewing and editing.
    You can choose to keep the original file as well, by checking the Save the file copy in the original format as well box.
  3. Click Convert.
  4. Click Open when the message appears that your document is successfully converted.

Now you can edit your document (if editable). After editing, you can simply close the document and the changes will be saved.

Download Host on your own server Available for
Docker, Windows and Linux
You Might Also Like This:
Close