---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.2
  - property: og:type
    content: article
  - property: article:section
    content: Migrate files
  - property: og:title
    content: Microsoft 365 (OneDrive)
  - property: article:tag
    content: Technical manual
alternate:
  - https://yandex.com/support/yandex-360/business/admin/en/migration/disk/microsoft.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/yandex-360/business/admin/en/llms.txt


# Microsoft 365 (OneDrive)

## Start migration {#how-to-start}

1. [Prepare a secret](https://yandex.com/support/yandex-360/business/admin/en/migration/prep-secrets/microsoft.md), [link a domain](https://yandex.com/support/yandex-360/business/admin/en/migration/add-domain.md), and [prepare employee accounts](https://yandex.com/support/yandex-360/business/admin/en/migration/add-accounts.md) if you haven't already done so.

    {% note info %}

    The [secret](https://yandex.com/support/yandex-360/business/admin/en/migration/prep-secrets/microsoft.md) applies to all running migrations. If you have already started migration and then upload a new secret, it will be applied to this migration. The secret permissions are also taken into account: if the new secret only has access to files and you have started email migration, it will stop.

    {% endnote %}

1. Select where you want to migrate files from: click **Microsoft 365**.

1. Upload the secret key file and click **Next**.

1. Specify the accounts for which you want to start migration:

    1. Download the [CSV file template](https://doc-static.yandex.net/support/business/ru/files/file.csv).

    1. Use the template to populate the file with the usernames of employees whose data you want to migrate.

        The first row in the file is the account field headers. Don't delete it. Each following line must contain data for one account, delimited by a semicolon and in quotation marks.

        The usernames in the `yandex_login` column must match the account names in Microsoft 365. For example, for the account `i.ivanov@example.test`, enter the username `i.ivanov` in the `yandex_login` column.

        The resulting file should have the following structure:

        ```
        "yandex_login";"external_email"
        "i.ivanov";"i.ivanov@example.test"
        "m.makarova";"m.makarova@example.test"
        ```
        {% note info "A migration file can contain no more than 20,000 rows" %}

        If you need to migrate more employees, create an additional file and run another migration. It can run in parallel with the first one.

        {% endnote %}

    1. Save the [CSV file](*p_csv) in [UTF-8](*p_utf) encoding (in Microsoft Excel, click **Save as** → **CSV-UTF8**).

        {% note alert %}

        If you save the file in a different encoding, it won't be recognized correctly.

        {% endnote %}

    1. Click **Upload CSV** and select your file.

1. Click **Start migration**.

    Migration doesn't happen immediately. Data collection takes from a few minutes to two hours, and then the files start appearing on Yandex Disk. If some of the files are already on Yandex Disk (for example, they were moved earlier), the dates when they were last changed on One Drive and Yandex Disk are compared, and the older versions are replaced with the newer ones.

    When migration is completed, the files don't sync. If new files appeared in One Drive after migration started and you want to transfer them to Yandex Disk, start a new migration.


{% note info %}

If you plan to run multiple migrations, save the log file before each run (you can download it by clicking **Details**). If errors occur during migration, you'll be able to track at which run they appeared.

{% endnote %}

## What happens if I stop migration? {#stop-migration}

All running migrations will be stopped.

## What happens if you start a new migration {#start-another-migration}

The new migration will run in parallel with the already running migrations.

## Troubleshooting {#troubleshooting}

To view the report with a detailed description of errors, click **Details** in the top right corner of the active migration page. For ways to fix these errors, see [Migration error report](https://yandex.com/support/yandex-360/business/admin/en/migration/detalization.md).


<!-- source: en/_includes/support.md -->
<div class="cut-button">

{% cut "Contact support" %}





{% endcut %}

</div>



<!-- endsource: en/_includes/support.md -->

[*p_csv]: A data format in which values are separated by delimiters (usually commas, but other delimiters can be used as well). It's usually used for storing tabular data and exchanging information between different systems.

[*p_utf]: A commonly accepted and standardized text encoding that allows storing Unicode characters. Widely used in operating systems and the web space.