# User Migration

When you migrate from Jane's embedded menu to Jane Roots with Cognito Auth, you may want to know whether your existing users will need to sign up again. Fortunately, these users will be automatically migrated to your new site. This all happens behind the scenes, and requires no work on your part.

When they attempt sign into your new menu for the first time, Cognito won't find the user in your user pool. It will then run a function to see whether the login is present in Jane's user database. If the login is found, the user will be transferred to your user pool. The user will be logged in automatically, and the next time they login, their credentials will be present in your user pool.

### Migration Use Cases

This list adds some details to the migration cases one might encounter. This is list is **not final** as this document and our features are always evolving.

1. When the user has an account at [www.iheartjane.com](http://www.iheartjane.com) marketplace
   * This user has no relation to your store, so **no migration and data import will happen** when they create an account in your new store
2. When the user has an account created on your embedded menu
   * This user is connected to your store(s). In this situation, they can login in your new site with the same email and password values and the [lambda](https://docs.iheartjane.com/bring-your-own-cognito-pools/setting-up-lambda-functions-to-use-cognito-user-pool-with-jane) functions will make sure to create the proper connections and create the user accounts where necessary
3. When the user has an account created on your embedded menu, via SSO (Google, Apple):
   * The user will need to run the Forgot Password flow. Since Jane has no knowledge of the password, the user will need to create a new one for your new site. The lambdas will handle everything just like the last case


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iheartjane.com/jane-docs/implementing-roots/integrating-authentication/user-migration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
