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?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,071 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,173 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,021 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.


0 additional answers

Sort by: Most helpful