# How to migrate firebase to auth0?

**URL:** <https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007>\
**Category:** Get Help\
**Tags:** firebase, migrate-users\
**Created:** [October 25, 2021, 2:32pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007 "2021-10-25T14:32:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aman/32/32581_2.png) [@aman](https://community.auth0.com/u/aman)\
**Post date:** [October 25, 2021, 2:32pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/1 "2021-10-25T14:32:12Z")

</div>

hi, I am wondering how I can migrate firebase users to auth0 ?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 25, 2021, 4:17pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/3 "2021-10-25T16:17:08Z")

</div>

Hi @aman,

Welcome to the Auth0 Community!

I understand that you have questions about how to migrate your Firebase users into Auth0.

The best way to accomplish this is by [_configuring automatic migration_](https://auth0.com/docs/users/import-and-export-users/configure-automatic-migration-from-your-database) in a Custom Database on your Auth0 tenant.

After doing so, your users will migrate into Auth0 after the first time they authenticate onto your application.

You can learn more about Automatic Migration [here](https://auth0.com/docs/users/import-and-export-users#automatic-migrations).

Please let me know if you have any further questions. I’d be happy to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![aman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aman/32/32581_2.png) [@aman](https://community.auth0.com/u/aman)\
**Post date:** [October 26, 2021, 4:00pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/5 "2021-10-26T16:00:25Z")

</div>

Awesome it works!

but I have a problem  
I can’t migrate google-oauth2 user to auth0 (oogle-oauth2)

due to this error

```auto
{'statusCode': 400, 'error': 'Bad Request', 
'message': 'The connection does not support user creation through the API.
 It must either be a database or sms connection.',
 'errorCode': 'operation_not_supported'}

```

any solution?

---

<div class="post-metadata">

**Author:** ![aman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aman/32/32581_2.png) [@aman](https://community.auth0.com/u/aman)\
**Post date:** [October 27, 2021, 8:54am UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/6 "2021-10-27T08:54:18Z")

</div>

@rueben.tiow you there?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 27, 2021, 8:04pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/7 "2021-10-27T20:04:47Z")

</div>

Hi @aman,

Thank you for your responses.

From looking at the error, it appears that you are trying to create a user in the Google Connection.

First, could you clarify how you triggered this error? Are you trying to create a user in the `google-oauth2` connection?

Such as using the Management API to create the user in the `google-oauth2` connection?

To clarify, it’s not possible to create a user in the `google-oauth2` connection. Since Google is the Identity Provider, users must register their accounts with Google. Then, you can enable the [Google Social Login](https://marketplace.auth0.com/integrations/google-social-connection) to allow these users to authenticate onto your application.

Thank you.

---

<div class="post-metadata">

**Author:** ![aman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/aman/32/32581_2.png) [@aman](https://community.auth0.com/u/aman)\
**Post date:** [October 28, 2021, 1:00pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/8 "2021-10-28T13:00:44Z")

</div>

Yes, I am using management api to create the user in the `google-oauth2` connection

thank you for your responses

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 28, 2021, 4:05pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/9 "2021-10-28T16:05:18Z")

</div>

Hi @aman,

Thank you for your clarification.

To reiterate, it’s not possible to create a user in the `google-oauth2` connection. Since Google is the Identity Provider, users must register their accounts with Google. Then, you can enable the [Google Social Login](https://marketplace.auth0.com/integrations/google-social-connection) to allow these users to authenticate onto your application.

For now, if you intend to create new users, I recommend that you create them in either a Database or SMS connection.

Please let me know if there’s anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 12, 2021, 4:06pm UTC](https://community.auth0.com/t/how-to-migrate-firebase-to-auth0/72007/10 "2021-11-12T16:06:04Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
