Integrating ONLYOFFICE with Google

Connect your Google account to log in to your portal quickly. Use Authorization keys to connect your portal to Google.

Bare Bones Instructions

If you decide to connect Google, proceed through these simple steps

  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.

    In this section, you will see all the third-party services you can connect your portal to. The most important part in the process of establishing the connection is to find application keys. If you want to connect a third-party service to your portal, first of all get the application ID (may be called app key, client_id, api key, etc.) and Key (app secret, client_secret, api secret, etc.). The way to obtain the connection keys differs from service to service. So choose the necessary service and follow the instructions:

Connect Google to ONLYOFFICEGoogle Icon

Use this instruction if you want to connect your Google Drive account with the Documents module, sign in to ONLYOFFICE via your Google account, and import new users from the contact list.

  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.

Helpful Hints

How to connect my Google account to portal?

When you proceed through all the steps described in the instruction, go to your 'Profile' page clicking the link with your name in the right upper corner of the page and choosing the corresponding option. On your 'Profile' page find the 'Login via Social Networks' caption, choose the necessary service and click the 'Connect' button. In the opened window grant the access to ONLYOFFICE application and introduce the account credentials, if it's necessary.

Watch video

How to connect ONLYOFFICE with Google

Watch our video tutorial to learn how to connect ONLYOFFICE with Google if you don't want to introduce your portal credentials every time you enter it and to synchronize your Google Docs account.

Host ONLYOFFICE Workspace on your own server

Article with the tag:
Browse all tags