Migrate from Google Workspace

Send feedback

NevTan reads each person's Gmail directly from Google using a service account, the same way Google's own migration tools work. Nobody shares a password, and nothing changes in Google.

What you need

  • A Google Workspace super admin account.
  • Access to any Google Cloud project. Creating one at console.cloud.google.com is free.
  • About ten minutes.

1. Create a service account key

  1. Open service accounts: Go to Google Cloud → IAM & Admin → Service accounts and pick a project, or create one.
  2. Create the account: Click Create service account, name it something like NevTan migration, click Create and continue, skip the optional roles and click Done.
  3. Download a key: Open the new account, go to the Keys tab and choose Add key → Create new key → JSON → Create. A .json file downloads.

Keep the key safe

The key lets its holder read your organisation's mail once delegation is set up. Upload it only to NevTan, and delete it when the migration is finished.

If Google says key creation is blocked, an organisation admin can allow it under IAM & Admin → Organization policies by overriding Disable service account key creation for this project.

2. Turn on the Admin SDK API

The Admin SDK API lets NevTan read your list of people. In the same project open APIs & Services → Library → Admin SDK API and click Enable. NevTan's setup screen links straight to the right project once you add the key.

3. Allow NevTan in Google Admin

  1. Open domain-wide delegation: In Google Admin go to Security → Access and data control → API controls → Manage Domain Wide Delegation and click Add new.
  2. Paste the client ID: NevTan shows it after you add the key, with a copy button. It is also the client_id in the .json file.
  3. Paste both scopes: Paste this into OAuth scopes, exactly as written, and click Authorize.
https://mail.google.com/,https://www.googleapis.com/auth/admin.directory.user.readonly

The first scope copies mail; the second lets NevTan list your people. Google usually applies the change within a few minutes.

4. Check IMAP is on

NevTan reads mail over IMAP. In Google Admin open Apps → Google Workspace → Gmail → End User Access → POP and IMAP access, make sure Enable IMAP access for all users is on, and save.

5. Connect in NevTan

  1. Start a migration: Open Dashboard and click Move mail here next to your domain, or open Mailboxes → Mail data. Then click New migration and pick Google Workspace.
  2. Add the key: Drop the .json file on the key box. NevTan shows the client ID and scopes to paste in step 3, with copy buttons.
  3. Enter an admin's address: Google only shares the list of people with an admin, so type a super admin's address. NevTan uses it for nothing else.
  4. Connect: Click Connect and find people. NevTan reads your people and checks it can open the admin's mail.
Connect Google Workspace step with the uploaded key, copyable client ID and scopes, and the admin address
The Connect step: each part turns green when it's done, and the values to paste have copy buttons.

6. Choose people and start

Everyone in your Google Workspace is listed and matched by the name before the @ to a mailbox on your NevTan domain. People without a mailbox show Gets a new mailbox; suspended users are left unticked. Untick anyone you don't want to move, choose what to copy, and click Start migration.

List of people found in the old provider with their NevTan mailbox and status
Choose who to move. Filters show who is selected, who needs a mailbox, and who can't be moved.

Fixing errors

Errors appear on the Connect step, or on the migration page next to each person. Fix the cause, then use Try again.

Message starts withWhat to do
Turn on the Admin SDK APIDo step 2 in the project the key came from, wait a few minutes, then connect again.
That address isn't allowed to read your list of peopleEnter a super admin's address, or an admin whose role can read users.
Google didn't accept the sign-in to read your list of peopleThe second scope is missing. Edit the client ID in domain-wide delegation and paste both scopes from step 3.
Google hasn't allowed this service account yetThe client ID or the mail scope isn't in domain-wide delegation. Check step 3 and wait a few minutes.
Google couldn't sign in asThat address doesn't exist in your Google Workspace or is suspended. Untick or remove that person.
The service account key could not sign inThe key was deleted or disabled. Create a new key and start a new migration with it.

When you're done

After your final Sync new mail, delete the key in Google Cloud (service account → Keys → delete) and remove the client ID from domain-wide delegation. Mail already copied stays in NevTan.