jani_r
jani_r

Reputation: 721

Firebase user import / export

Does anyone know how to migrate users from one firebase project to another and keep the same uid ?

Ideally the uid would be the same in the target project since I have in the db tied records to the uid

Is it possible to keep the uid the same in target project ?

The source project would then be deleted

Upvotes: 1

Views: 470

Answers (1)

Renaud Tarnec
Renaud Tarnec

Reputation: 83103

You can use the specific auth:export and auth:import commands of the Firebase CLI:

  • The auth:export command exports user accounts to JSON and CSV files.
  • The auth:import command imports user accounts into Firebase projects.

Upvotes: 1

Related Questions