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)
- Sign in to the Box Developer Console with a Box Admin account.
- Click Create New App → Custom App.
- Select Server Authentication (with JWT) and click Next.
- Name the app
Aatrex Migrationand click Create App. - 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)
- Read all files and folders stored in Box (
- Under Advanced Features, enable Generate user access tokens (allows the app to act on behalf of managed users).
- 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.
- Click Save Changes.
Authorise the App in Box Admin Console
- In the Box Admin console, go to Apps → Custom Apps Manager.
- Find
Aatrex Migrationin 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
- Sign in to portal.azure.com as a Global Administrator.
- Go to Azure Active Directory → App registrations → New registration.
- Name it
Aatrex Box Destinationand click Register. - Copy the Application (client) ID and Directory (tenant) ID.
- Go to Certificates & secrets → New client secret, copy the value.
- Go to API permissions → Add a permission → Microsoft Graph → Application permissions and add:
| Permission | Purpose |
|---|---|
Files.ReadWrite.All | Write files into OneDrive |
Sites.ReadWrite.All | Write to SharePoint sites (for team/shared content) |
User.Read.All | Resolve destination user UPNs |
- Click Grant admin consent and confirm all show Granted.
Step 2b: Destination Setup — Google Drive
Create a Google Cloud Project and Service Account
- Sign in to console.cloud.google.com as a Super Administrator.
- Create a project named
Aatrex Box to Drive(or reuse an existing migration project). - Enable Google Drive API and Admin SDK API.
- Go to Credentials → Create Credentials → Service account, name it
aatrex-box-migration, and download the JSON key. - Copy the Unique ID from the service account detail page.
Grant Domain-Wide Delegation
- In the Google Admin console, go to Security → API controls → Manage domain-wide delegation → Add new.
- Enter:
- Client ID: service account Unique ID
- OAuth Scopes:
https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/admin.directory.user.readonly
- Click Authorise.
Step 3: Create a Migration Project
- In Aatrex, click Projects → Create Project.
- Select the migration type:
- Box → OneDrive or Box → Google Drive
- Source credentials: upload the Box JWT credentials JSON file downloaded from the Box Developer Console.
- 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).
- Click Test Connection → Save Project.
Step 4: Discover and Map
- Click Scan → Discover Users. Aatrex lists all Box managed users with their storage usage.
- Click Auto Map to match Box users to destination users by username (the portion before
@in the email address). - 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
- Select users and click Migrate.
- Choose Full for the first pass, or Changed since for incremental delta runs.
- Click Start Migration and monitor progress in the Activity panel.
File and Content Handling
| Content type | Behaviour |
|---|---|
| All standard files (PDF, images, Office, etc.) | Copied as-is |
| Box Notes | Copied as .boxnote files — not converted |
| Box web links | Not migrated |
| Shared links | Recreated 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 collaborators | Kept with their own address; fails with the reason if the destination blocks external sharing |
| Box groups | Not 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.