If you're migrating from OneDrive for Business, follow the instructions for SharePoint unless specified.
You add a source connection to allow Google Workspace Migrate to read, convert, and transfer data from Microsoft SharePoint to your Google Workspace account.
The steps to add a SharePoint connection depend on what version of Google Workspace Migrate you’re using.
Add the source connection for your version
Expand section | Collapse all & go to top
Google Workspace Migrate version earlier than 2.4.24.0Important: These steps apply to Google Workspace Migrate versions earlier than 2.4.24.0. If you are using a newer version of Google Workspace, go to the steps for Google Workspace Migrate version later than 2.4.24.0.
- In the Google Workspace Migrate platform, click New
Connection.
- Under Name, specify a connection name.
- For Type, select your version of SharePoint.
If you're migrating from OneDrive, select SharePoint Online.
- For URL, specify the URL of your SharePoint site collection.
If you're only migrating from OneDrive, enter your SharePoint site collection URL with -my added to the subdomain (for example, example-my.sharepoint.com).
- For Account, choose an option:
- Select an existing SharePoint administrator account.
- Click Add a new account.
- If you're connecting to SharePoint Server, specify the administrator’s account username and password.
- If you're connecting to SharePoint Online, specify a client ID and client secret for your SharePoint site. For details on how to generate a client ID and client secret for SharePoint Online, go to Create app-based credentials for SharePoint Online.
- If you’re defining a list of site collections or OneDrive accounts for migration, for List, select your location list. For details, go to Create a location list.
Note: If you want to migrate only the single site collection defined by the URL in step 4, you can skip this step.
- Click Create.
Edit a connection
- In the Google Workspace Migrate platform, click Connections. You might have to click Menu
first.
- Point to the connection and click More
Edit.
- Enter your changes and click Save.
Troubleshoot connection errors
If you get a 401 (Unauthorized) error when setting up the SharePoint connection, open Microsoft PowerShell and try these troubleshooting options:
- Make sure you're signed in as the SharePoint Online administrator or Global Administrator and enter Connect-SPOService -Url https://<SharePoint-site> to connect to a SharePoint Online connection.
For details, go to Connect-SPOService.
- Enter Set-spotenant -DisableCustomAppAuthentication $false to enable custom app authentication.
For details, go to Granting access using SharePoint App-Only.
-
Enter Set-SPOTenant -IsSharePointAddInsDisabled $false to enable app add-ins.
For details, go to IsSharePointAddInsDisabled.
Follow these steps to use Microsoft Entra ID to add a connection from SharePoint to your Google Workspace account.
Important: These steps apply to Google Workspace Migrate version 2.4.24.0 or later. If you are using an older version of Google Workspace, go to the steps for Google Workspace Migrate version earlier than 2/4.24.0.
Requirements
- PowerShell 7.4.4 or later—Necessary for PnP.Framework
- Access to an Entra ID account—Necessary for granting administrator consent for permissions
- SharePoint Online Certificate file (.pfx)—Generated when you create a source connection
Create a connection
- In the Google Workspace Migrate platform, click New
Connection.
- For Name, specify a connection name.
- For Type, select your version of SharePoint.
If you're migrating from OneDrive, select SharePoint Online.
- For URL, specify the URL of your SharePoint site collection.
If you're only migrating from OneDrive, enter your SharePoint site collection URL with -my added to the subdomain (for example, example-my.sharepoint.com).
- For Account, choose an option:
- Select an existing SharePoint administrator account.
- Click Add a new account.
- To use one command go to Set up a SharePoint source connection with one command.
- To connect manually, go to Manually set up a SharePoint source connection.
- For Client ID, enter the Application (client) ID found on the Overview page in your registered application.
- For Tenant ID, enter the Directory (tenant) ID found on the Overview page in your registered application.
- Under Certification Password, enter the password that corresponds to the service certificate you created.
- Under Service certificate, add the .pfx file you created.
- If you’re defining a list of site collections or OneDrive accounts for migration, for List, select your location list. For details, go to Create a location list.
Note: If you want to migrate only the single site collection defined by the URL in step 4, you can skip this step. - Click Create.
Set up a SharePoint source connection with one command
Follow these steps to register the application, get a certificate, and grant required permissions with one command.
- Open a PowerShell terminal and create 2 new folders:
- mkdir Certificates_Folder
- cd Certificates_Folder
- Run Install-Module PnP.PowerShell -AllowPrerelease - SkipPublisherCheck-Force to be sure you installed the nightly build.
- Run Import-Module PnP.PowerShell.
- Update the following command with the name of your registered application and the address of your tenant page, and then run it.
$result = Register-PnPEntraIDApp -ApplicationName "Your-new-registered-app-name-here" -Tenant yourtenantpage.com -CertificatePassword (Read-Host -AsSecureString -Prompt "Enter Certificate Password") -OutPath .\ -DeviceLogin
- Enter a password for the certificate.
- Sign in with your Entra ID to create the application.
- Grant administrator consent to the required permissions.
Note: You can remove unnecessary permissions here.
- Go to cd Certificates_Folder and locate the new .pfx file. The file is your service certificate.
- Return to Create a connection and complete the remaining steps.
Manually set up a SharePoint source connection
- Go to https://entra.microsoft.com/#home and log in with your administrator credentials.
- For App Registrations, click New registration.
- Enter a name for the application and don’t change any other fields.
- Click Register.
- For App registrations, click the new application.
- Click API permissions
Add a Permission
SharePoint.
- Click API permissions
Sites.FullControll.All
Add permissions.
- Click Grant admin consent
Yes to confirm.
- Open PowerShell as an administrator.
- If you created a specific folder for the certificates, enter cd <path> to change your working directory.
- Run this command and replace the values:
$cert = New-PnPAzureCertificate -CommonName "my-certificate-common-name" -OutPfx .\my-certificate.pfx -OutCert .\my-certificate.cer -ValidYears 2 -CertificatePassword (Read-Host -AsSecureString -Prompt "Enter Certificate Password")
This command creates 2 certificate files:
- my-certificate.pfx
- my-certificate.cer
- Run the following command to retrieve the certificate thumbprint: $cert.Thumbprint.
If you want to retrieve it from the user interface, follow these steps:
- Go back to the Microsoft Entra sign-in page and log in with your administrator credentials.
- Go to the App registrations page and click the newly registered application.
- For Certificates & secrets, click Upload certificate.
- Upload the .cer file and click Add.
- When the upload is complete, retrieve the thumbprint from the list.
- Return to Create a connection and complete the remaining steps.
Next step
Create a sharding users list (Optional)
Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.