Skip to content

User migration (export / import)

User migration moves all items belonging to a user account to another user account. It is typically used when a user needs to switch accounts, for example when an organization's authentication provider changes (from local to SAML, from LDAP to SAML, …) and the user wants to keep the desktops and templates belonging to their old account.

Migration is not a file export. Nothing is downloaded. Instead:

  1. The source user generates a migration token in their profile (export).
  2. The target user logs in and pastes this token into their profile (import).
  3. The target user confirms the migration and the items change owner.

Two ways to migrate a user

This page describes migration initiated by the users themselves, using the export/import token. An administrator can also migrate a user directly from the users table, without any token: see the Migrate user section of User management.

Only code-based migrations appear in the Migrations table; the ones the administration performs directly do not.

The migration process is irreversible

Once the target user confirms the migration, the items belong to the new account and it cannot be undone. Only the administrator actions described in Migrations remain available.

What is migrated

Item Migrated
Desktops
Templates
Media
Deployments

Side effects applied during the migration:

  • Any running desktop is stopped.
  • The source user's Recycle bin is deleted.
  • The source user's bookings are deleted.
  • Non-persistent desktops are deleted.
  • The list of co-owners of deployments is deleted. Desktops belonging to other users within a migrated deployment remain intact.
  • Resources (networks, RAM, vCPU, GPU) that the target user is not allowed to use are removed or restricted.
  • If the target user already has an item with the same name, the migrated item gets the (migrated) suffix added to its name.

Requirements

Before a migration can be performed:

  • The source user must have at least one item. Exporting an account without desktops, templates, media or deployments is rejected.
  • Both accounts must belong to the same category. Migrating between categories is not allowed.
  • Migration must be enabled in the authentication provider of each account: export in the source user's provider and import in the target user's provider. See the Provider configuration section.
  • An administrator account can only be migrated to another administrator account.
  • If the source user has templates, media or deployments, the target account cannot have the user role.
  • The migration token is valid for 1 hour and can only be used once. Generating a new token invalidates the previous one.

Administrator configuration

Provider configuration

Migration is configured per authentication provider, at Config → Authentication. Each provider (Local, Google, SAML, LDAP) shows a summary of its current migration configuration:

Click Update config on the provider to modify. The Migration section of the window contains the options:

Option Description
Allow User Import Users of this provider can import another account into theirs. Required for the target account.
Allow User Export Users of this provider can generate a migration token. Required for the source account.
After migration What to do with the source account once the migration finishes: Nothing (default), Delete original user or Disable original user.
Force Migration Users of this provider are redirected to the export page as soon as they log in, and cannot use IsardVDI until they export their account. Only available when Allow User Export is enabled.

After migration

The action applies to users migrated to this provider. With Nothing, the source account keeps existing (empty), can still log in and can be used.

Status bar notification

When Force Migration is used, it is useful to warn users in advance. Enable Add Status Bar Notification to show a message at the top of the user interface:

  • Notification Template: the message shown. Templates are managed at Notifications → Templates.
  • Notification Level: Info, Warning or Danger. It determines the color of the bar.
  • Notification Preview: shows what the bar will look like with the selected template and level.

Migration exemptions

At the bottom of the Authentication page, the Migrations exemptions panel defines who is not affected by a forced migration:

Add an exemption with Exempted role, Exempted category, Exempted group or Exempted user:

Exemptions only apply to forced migrations. Exempt users can still migrate voluntarily.

Quota check

In Users → Quotas / Limits, the Quota should be checked when migrating a user option determines whether the target user's quota is validated before the migration starts:

  • Enabled: if the migrated items exceed the target user's quota for desktops, templates, media or deployments, the migration is rejected.
  • Disabled: the migration is performed even if the target user exceeds their quota.

User workflow

The user's full journey is described in Export user data and User migration. In short:

  1. Export the source account. The user opens their profile and clicks Export User. On the export page, they click Generate migration token, copy the code from the Migration token field and click Logout and continue with the new user. The code is only shown once and expires after 1 hour.

  2. Import into the target account. The user logs in with the new account, opens the profile and clicks Import User. They paste the code into the Migration token field and click Start migration.

  3. Confirm the migration. The migration page summarizes the items that will be moved and the consequences. The user checks the I understand and accept the risks associated with the migration process box and clicks Confirm migration. The window must be kept open during the transfer («Please keep this window open while your items are migrated.»).

If the administration has enabled Force Migration, the user is taken straight to the export page when logging in.


Migration tracking

Administrators can track all the migrations of the installation, check their status and revoke or delete them from the Migrations table, at Users → Migration.

States and messages

Errors the user may see during the migration, and what to check in the administration:

What is shown What it means What to do
«User import is not enabled for your authentication provider» The target account's provider does not have Allow User Import enabled. Enable it in the provider configuration, if appropriate.
«There are no items available to migrate» The source account has no desktop, template, media or deployment. The code cannot be generated.
«Migration token not found» The entered code does not exist. Check that it was copied in full.
«The token you provided has expired» More than 1 hour has passed since the code was generated. Generate a new one from the source account.
«The token you provided is invalid» The code is not valid or is not a migration code. Check the code.
«There is no active migration for your account.» The account has no migration in progress. First generate the code from the source account.
«There are multiple migrations for the new user» The target account has several migrations associated with it. Revoke the extra ones in the Migrations table.
«You can't migrate to the same account. When obtaining the token, you must log out and log in with the new account» The code was imported with the same account that generated it. Log out and log in with the target account.
«You can't migrate to an account from a different category» The two accounts belong to different categories. Use a target account in the same category.
«You can't migrate from an admin account» The source is an administrator and the target is not. The target must also be an administrator.
«You can't migrate to a user account from an account with a higher role» The source has templates, media or deployments and the target has the user role. Change the target's role, or change the owner of those items or delete them first.
«The user has more desktops than the new user quota» (also templates, media or deployments) The quota check is enabled and the items do not fit within the target's quota. Reduce the items or increase the target's quota in Quotas and limits.
«An internal server error occurred. Please try again later» Internal error while generating or importing the code. Try again later.