Migrate Users to FusionAuth

On this page

FusionAuth can import user data from a homegrown system or from another identity provider. An import can carry profile data, roles, groups, registrations, refresh tokens, and password hashes. FusionAuth stores fields without a FusionAuth equivalent in user.data.

Import Users#

FusionAuth offers the following ways to bring users in:

  • The Import Users API loads users in batches, with their existing password hashes. Use the Import Users API for a bulk migration.
  • The Create a User API creates one user at a time. The Create a User API takes a plaintext password or no password, not a hash. Use the Create a User API for a few users, for users without passwords, or for an instance that already has users.
  • Connectors move each user at the user's first login. Use Connectors for a slow migration when you can't export password hashes. Connectors require the Starter plan or higher.
  • SCIMAn open standard defining an HTTP REST protocol and schema for automating user and group provisioning across systems. provisions users from a SCIM client, such as Azure AD or Okta, and keeps the accounts in sync. SCIM requires the Enterprise plan. For more information, see SCIM.

To choose an approach, see Migration Types. To work through a migration from start to finish, follow these pages in order:

  1. Plan a Migration maps your data to FusionAuth and sets up FusionAuth.
  2. Bulk Migration or Slow Migration moves the users.
  3. Special Considerations covers refresh tokens, SAML configuration, very large user counts, and applications that depend on the old system's tokens.

For a worked example with one user table, see the Generic Migration Tutorial.

Use FusionAuth Without Importing Users#

FusionAuth can authenticate users against an existing user store without storing the users:

  • When the user store supports SAML or OIDC, configure the store as an Identity Provider. Customize the theme, and consider a login hint to send users straight to the store.
  • When the user store supports LDAPA protocol for reading and authenticating users in a directory server, such as Active Directory. FusionAuth connects to a directory server through an LDAP Connector. or a JSON API, configure a Connector without migration.

In both cases, FusionAuth talks to the user store through an interface, never through the store's database. FusionAuth doesn't support direct database access.

Other Migration Guides#

FusionAuth also has guides for specific identity providers and frameworks, password hashing plugins, moving between FusionAuth Cloud and a self-hosted instance, and exporting data when you leave FusionAuth:

From Another Provider

From a Framework

Password Hashing Plugins

Between Cloud and Self-Hosted

FusionAuth maintains open-source import scripts for CSV files, Auth0, and other sources. When no guide covers your provider, open an issue with the details.

Get Help#

When an import fails, see Troubleshooting User Import. To ask a question, post in the FusionAuth forum. With a paid plan, you can open a support request from your account. Some plans include help from the FusionAuth team with data migration. For more information, see FusionAuth pricing.