Skip to main content

Google

Connect the Google service to log in to your workspace quickly with a Google account. In the server version, you can also use the connected Google Drive as a third-party resource when creating backups or rooms.

Creating authorization keys​

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

In the server version, you will have to set up authorization keys for Google. Follow these steps:

  1. Go to the Google Cloud console.

  2. Sign in to your account.

  3. Create a new project or select an existing one.

  4. Enable the necessary APIs:

    1. Click the navigation menu in the upper left corner and select APIs & Services -> Library.
    2. Find Google Drive API and click Enable.
    3. Enable Google People API in the same way.
  5. Configure the app in Google Auth Platform:

    1. In the APIs & Services menu, select OAuth consent screen. The Google Auth Platform page opens.
    2. Click Get started.
    3. In the App Information step, enter the App name, select the User support email and click Next.
    4. In the Audience step, select External and click Next.
    5. In the Contact Information step, enter your email address and click Next.
    6. In the Finish step, select the I agree to the Google API Services: User Data Policy checkbox and click Continue.
    7. Click Create.
  6. Allow access to Google Drive:

    1. In the left-side menu, select Data Access and click Add or remove scopes.
    2. In the Manually add scopes section, enter https://www.googleapis.com/auth/drive and click Add to table, then click Update.
    3. Click Save.
  7. Add test users:

    1. In the left-side menu, select Audience.
    2. In the Test users section, click Add users, enter the Google accounts that will sign in to the workspace and click Save.

    While the app is in testing mode, only the test users can connect their Google accounts.

  8. Create the client:

    1. In the left-side menu, select Clients and click Create client.
    2. In the Application type list, select Web application and enter the client name.
    3. In the Authorized redirect URIs section, click Add URI and enter https://service.onlyoffice.com/oauth2.aspx.
    4. Click Create. Copy or write down the Client ID and Client secret displayed in the window that opens.

Connecting Google to ONLYOFFICE Apps​

  1. In the server version, click the Options icon menu in the lower left corner and select the Settings option.
  2. Open the Integration section on the left.
  3. Switch to the Third-party services tab and click the toggle to the right of the Google logo.
  4. Enter the Client ID in the Google ID field and the Client secret in the Google Key field.
  5. Click the Enable button.

Signing in​

To sign in via Google,

  1. Go to your Profile page by clicking the link with your name in the lower left corner of the page.
  2. On your Profile page, open the Login tab and click the Sign in with Google button in the Connect your accounts section.
  3. In the window that opens, choose your Google account and grant access to the application.

Once the account is connected, the button changes to Disconnect Google. To sign in to the workspace with this account, click Google under or continue with on the login page.

Storing backup​

note

Google Drive is available as a third-party resource in the server version only.

To store your workspace data backup in Google Drive,

  1. Go to the Backup section (Settings -> Backup -> Data backup).
  2. Select the Third-party resource option and choose Google Drive from the list.
  3. If the Google account is not connected yet, click Connect, choose your account and grant access to the application.
  4. Select the folder in Google Drive to store the backup.
  5. Click Create copy.

For more details about backup, read this article.

Storing room data​

note

Google Drive is available as a third-party storage for rooms in the server version only.

To store your 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 Public room.
  4. Enter the room name and, if necessary, add tags and upload an image.
  5. Turn on the Third-party storage toggle.
  6. Select Google Drive from the list and click Connect.
  7. In the window that opens, choose your Google account and grant access to the application.
  8. The Create a new folder in the storage option is selected by default: a new folder named after the room will be created in Google Drive. If necessary, clear this option and select an already existing folder.
  9. Click Create.

For more details about creating rooms, read this article.