Share via

Using Migration API with OneDrive sites

Vish Pothaganti 66 Reputation points
2021-02-16T14:27:38.527+00:00

I'm using the Migration API to get bulk of files from SharePoint sites and also to upload bulk files to SharePoint (https://learn.microsoft.com/en-us/sharepoint/dev/apis/migration-api-overview)

Can we use the same API to Import/Export files from OneDrive sites? Is there any special URL structure to build for OneDrive sites?

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments

Answer accepted by question author

MichaelHan-MSFT 18,136 Reputation points
2021-02-17T02:51:25.26+00:00

Hi @Vish Pothaganti ,

One Drive sites are also SharePoint sites. So yes, we could use the same API to Import/Export files from OneDrive sites.

The URL of One Drive sites in SharePoint Online should be like this: https://tenant-my.sharepoint.com/personal/username_tenant_onmicrosoft_com/

For example: the url of Documents library in my onedrive is: https://tenant-my.sharepoint.com/personal/michael_tenant_onmicrosoft_com/Documents


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.