Prepare a secret in Google Workspace

A secret file is a file with an access key. Yandex 360 for Business uses it to connect to Google Workspace. To prepare it, you need to create a service account in Google Workspace, then create a new secret and save it to a file.

  1. Step 1. Create a project, account, and key
  2. Step 2. Set up access rights
  3. Step 3. Enable API access to the project

Step 1. Create a project, account, and key

  1. If you don't have a project, create one:
    1. Click Create project.
    2. In the Project name field, enter the name of the project.
    3. In the Organization field, select the company you want to transfer data from.

    4. Click Create. Wait until the page with the new project is loaded.
  2. On the top panel, click Create service account.
  3. In the Service account name field, enter the name of the account.
  4. Click Create and continue.

    Optional steps:

    Grant this account access to the project
    Skip the Grant this service account access to project step or set up project access rights.
    Grant users access to the project
    Skip the Grant users access to project step or specify the users who can manage your account.
  5. Click Done. The new service account will appear in the list.
  6. Open the account, copy Unique ID, and save it in a text file. You'll need it in the next step.

    Example of an identification number:

    104585045394161743643
  7. Go to the Keys tab.
  8. Select Add key → Create new key.
  9. In the Key type block, select JSON.
  10. Click Create to download the key to your computer.

Step 2. Set up access rights

  1. Select Security → Access and data control → API controls.
  2. Click Manage domain wide delegation.
  3. In the API clients block, click Add.
  4. In the Client ID field, specify the account identification number that you copied and saved at Stage 6 of Step 1.
  5. Copy the following line:

    https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/admin.directory.user.readonly,https://mail.google.com/,email,profile 
  6. Paste it into the OAuth scopes (comma-delimited) field.

  7. Click Authorize.

Step 3. Enable API access to the project

  1. In the Select a project drop-down list on the Admin SDK API page, select your project and click Enable.
  2. In the Select a project drop-down list on the Google Drive API page, select your project and click Enable.
  3. In the Select a project drop-down list on the Gmail API page, select your project and click Enable.

Once you set up the project, you can start migrating emails and files. To start migration, you will need the secret file that you downloaded at Stage 10 of Step 1.