Launch offer: 20% off every migration plan until 31 January 2027. See prices
//Box → OneDrive & Google Drive
8 min read
Cross-platform·Cross-Platform

Box → OneDrive & Google Drive

Migrate Box Business or Enterprise files, group folders, and permissions into OneDrive for Business or Google Drive using JWT authentication.

Box → OneDrive & Google Drive Migration Guide

Migrate Box Business or Box Enterprise files, folders, and co-owner access into Microsoft OneDrive for Business or Google Drive. Aatrex connects to Box via a JWT-authenticated server-side app and writes to your chosen cloud storage destination.


Prerequisites

Source — Box

  • Box Business Plus or Box Enterprise account
  • Admin or Co-Admin role
  • A Box application configured for JWT authentication (see Step 1)

Destination — Microsoft OneDrive (if migrating to M365)

  • Global Administrator role
  • OneDrive/SharePoint licences assigned to all destination users
  • OneDrive sites pre-provisioned for all users (see Step 2a)

Destination — Google Drive (if migrating to Google Workspace)

  • Super Administrator role
  • Google Workspace licences assigned to all destination users
  • A service account with domain-wide delegation (see Step 2b)

Step 1: Create a Box Application (Source)

  1. Sign in to the Box Developer Console with a Box Admin account.
  2. Click Create New App → Custom App.
  3. Select Server Authentication (with JWT) and click Next.
  4. Name the app Aatrex Migration and click Create App.
  5. In the app settings, under Application Scopes, enable:
    • Read all files and folders stored in Box (root_readonly)
    • Manage users (required to enumerate managed users)
  6. Under Advanced Features, enable Generate user access tokens (allows the app to act on behalf of managed users).
  7. Go to the Configuration tab and click Generate a Public/Private Keypair. The developer console downloads a JSON credentials file — save it, you will upload this to Aatrex.
  8. Click Save Changes.

Authorise the App in Box Admin Console

  1. In the Box Admin console, go to Apps → Custom Apps Manager.
  2. Find Aatrex Migration in the Pending list and click Authorise.

App authorisation must be done by a Box Primary Admin. Once authorised, the app can access all managed users' files.


Step 2a: Destination Setup — Microsoft OneDrive

Pre-Provision OneDrive Sites

OneDrive sites must exist before Aatrex can write files. Run in SharePoint Online Management Shell:

Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
$users = Get-SPOUser -Site https://yourtenant-my.sharepoint.com | Select -ExpandProperty LoginName
Request-SPOPersonalSite -UserEmails $users -NoWait

Register an App in Azure AD

  1. Sign in to portal.azure.com as a Global Administrator.
  2. Go to Azure Active Directory → App registrations → New registration.
  3. Name it Aatrex Box Destination and click Register.
  4. Copy the Application (client) ID and Directory (tenant) ID.
  5. Go to Certificates & secrets → New client secret, copy the value.
  6. Go to API permissions → Add a permission → Microsoft Graph → Application permissions and add:
PermissionPurpose
Files.ReadWrite.AllWrite files into OneDrive
Sites.ReadWrite.AllWrite to SharePoint sites (for team/shared content)
User.Read.AllResolve destination user UPNs
  1. Click Grant admin consent and confirm all show Granted.

Step 2b: Destination Setup — Google Drive

Create a Google Cloud Project and Service Account

  1. Sign in to console.cloud.google.com as a Super Administrator.
  2. Create a project named Aatrex Box to Drive (or reuse an existing migration project).
  3. Enable Google Drive API and Admin SDK API.
  4. Go to Credentials → Create Credentials → Service account, name it aatrex-box-migration, and download the JSON key.
  5. Copy the Unique ID from the service account detail page.

Grant Domain-Wide Delegation

  1. In the Google Admin console, go to Security → API controls → Manage domain-wide delegation → Add new.
  2. Enter:
    • Client ID: service account Unique ID
    • OAuth Scopes:
      https://www.googleapis.com/auth/drive,
      https://www.googleapis.com/auth/admin.directory.user.readonly
      
  3. Click Authorise.

Step 3: Create a Migration Project

  1. In Aatrex, click Projects → Create Project.
  2. Select the migration type:
    • Box → OneDrive or Box → Google Drive
  3. Source credentials: upload the Box JWT credentials JSON file downloaded from the Box Developer Console.
  4. Destination credentials:
    • OneDrive: enter the M365 App ID, Tenant ID, and Client Secret.
    • Google Drive: upload the service account JSON key and enter the Admin email (Super Administrator UPN).
  5. Click Test Connection → Save Project.

Step 4: Discover and Map

  1. Click Scan → Discover Users. Aatrex lists all Box managed users with their storage usage.
  2. Click Auto Map to match Box users to destination users by username (the portion before @ in the email address).
  3. For Box Groups and Shared Folders: click Scan → Discover Group Folders. Map each Box group folder to a destination SharePoint site or Google Shared Drive.

Step 5: Start Migration

  1. Select users and click Migrate.
  2. Choose Full for the first pass, or Changed since for incremental delta runs.
  3. Click Start Migration and monitor progress in the Activity panel.

File and Content Handling

Content typeBehaviour
All standard files (PDF, images, Office, etc.)Copied as-is
Box NotesCopied as .boxnote files — not converted
Box web linksNot migrated
Shared linksRecreated as new links on the destination — the old Box URLs stop working
Collaborator access (people)Migrated, mapped to new addresses through your user pairs, then by domain
External collaboratorsKept with their own address; fails with the reason if the destination blocks external sharing
Box groupsNot migrated — groups have no email address to match on; each one is listed on the sharing item

See What Moves and What Doesn't for the full list.


Common Issues

Box app shows "Pending" in Admin Console — not Authorising Only the Box Primary Admin can authorise JWT apps. Secondary Admins and Co-Admins do not have this permission. Contact the Primary Admin to complete the authorisation.

Box API returns 403 — access_denied_insufficient_permissions The app scope does not include Manage users. Edit the app in the Box Developer Console, enable the scope, and save — then re-authorise the app in the Box Admin Console.

OneDrive site not found for user The OneDrive site has not been provisioned. Run Request-SPOPersonalSite for the specific user and wait for provisioning before retrying.

Google Drive permission errors The service account lacks domain-wide delegation, or the drive scope was not included. Verify both in the Google Admin console and retry.

PreviousGoogle Drive → OneDrive

Related articles