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

Connecting Google to ONLYOFFICE DocSpace

Connect the Google service to log in to your space quickly or to use Google Drive as a third-party resource when creating backups or public rooms.

Creating authorization keys

In the cloud version, the authorization keys parameters for Google Drive are set up automatically.

In the server version, you will have to setup authorization keys for Google. 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 -> Enabled APIs and services.
    • 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.
    • Return to the Enabled APIs and services page, click the Enable APIs and services button. In the Social section, enable the Google People API and Contacts API in the same way.
  5. Configure the OAuth consent screen, add a scope and test users:
    • From the left navigation menu, select the 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:
    • From the left navigation menu, select the 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 Google to ONLYOFFICE DocSpace

  1. In the server version, click the Options icon menu in the lower left corner and select the Settings option.
  2. Switch to the Integration tab.
  3. In the Third-party services section, click the sliding button to the right of the Google logo.
  4. Enter your keys and click the Connect button.

To sign in via Google,

  1. Go to your 'Profile' page clicking the link with your name in the lower left corner of the page.
  2. On your 'Profile' page, find the 'Сonnect your social networks' caption, choose the Google service and click the 'Connect' button.
  3. In the opened window, grant the access to ONLYOFFICE application and enter the account credentials, if it's necessary.

To store your DocSpace data backup in Google Drive,

  1. Go to the 'Backup' section (DocSpace Settings -> Backup -> Third-party resource).
  2. Select Google Drive as the desired storage and click the 'Connect' button.
  3. Choose your account, grant the access to ONLYOFFICE application and click 'Create copy'.

For more details about backup, read this article.

To store your public room data in Google Drive,

  1. Go to the Rooms section on the left.
  2. Use the New room button in the upper left corner or the Plus icon Plus icon above the list of rooms.
  3. Select the Public room.
  4. Enter the room name, add tags, upload an image.
  5. Turn on the Third-party storage switcher.
  6. Select Google Drive from the list and click Connect.
  7. In a new window, specify the connection URL, your login and password, and click Save.
  8. A new folder for storing this room’s data will be created in the connected storage. If necessary, uncheck this option and select the already existing folder in the connected storage.
  9. Click Create.

For more details about creating rooms, read this article.

Try now for free Try and make your decision No need to install anything
to see all the features in action
You Might Also Like This:
Close