# In Bulk Users Import Job, how to prevent overwriting unspecified meta data?

**URL:** <https://community.auth0.com/t/in-bulk-users-import-job-how-to-prevent-overwriting-unspecified-meta-data/93530>\
**Category:** Get Help\
**Tags:** bulk-user-import, auth0\
**Created:** [November 1, 2022, 9:03pm UTC](https://community.auth0.com/t/in-bulk-users-import-job-how-to-prevent-overwriting-unspecified-meta-data/93530 "2022-11-01T21:03:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fractal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fractal/32/14363_2.png) [@fractal](https://community.auth0.com/u/fractal)\
**Post date:** [November 1, 2022, 9:03pm UTC](https://community.auth0.com/t/in-bulk-users-import-job-how-to-prevent-overwriting-unspecified-meta-data/93530/1 "2022-11-01T21:03:48Z")

</div>

Hello,  
I am using Bulk Users Import Job, attempting to update our user’s meta data.  
For example, our user profile user meta data might look something like this:

```auto
{
  "language": "en-ca",
  "customer_id": 0000001,
  "favorite_color": blue
}

```

And I would have this as the json array to update only the customer\_id meta data

```auto
[
  {"email": "test1@yopmail.com", "user_id": "auth0|
636177aba862169c6f2f5b37", "user_metadata": {"customer_id": 8888881} },
  {"email": "test2@yopmail.com", "user_id": "auth0|63617886dc4c78e593bb3c5c", "user_metadata": {"customer_id": 8888882} }
]

```

But after running the import, the user profile will now b e

```auto
{
  "customer_id": 8888881
}

```

As per documentation:

> **[Bulk User Imports](https://auth0.com/docs/manage-users/user-migration/bulk-user-imports)**
>
> Learn how to perform bulk user imports with the Management API.

I have in the parameter upsert: true

Thank you.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [November 2, 2022, 5:58pm UTC](https://community.auth0.com/t/in-bulk-users-import-job-how-to-prevent-overwriting-unspecified-meta-data/93530/3 "2022-11-02T17:58:22Z")

</div>

Hi @fractal ,

When bulk import users, with `upsert: true` the existing user profile will be overwritten. That’s the behavior you observed.

To avoid this, please export the user profile first, make the changes to the export file, and import it again.

In [this](https://community.auth0.com/t/how-to-bulk-update-user-profile-details-in-the-management-api/81198) FAQ, note #7 mentioned this limitation.

Hope this helps!

---

<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 16, 2022, 5:58pm UTC](https://community.auth0.com/t/in-bulk-users-import-job-how-to-prevent-overwriting-unspecified-meta-data/93530/4 "2022-11-16T17:58:25Z")

</div>

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