# How to update to multiple users at the same time the mail domain

**URL:** <https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714>\
**Category:** Get Help\
**Tags:** user-import-export, user-management\
**Created:** [January 25, 2024, 3:05pm UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714 "2024-01-25T15:05:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SupConf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supconf/32/59774_2.png) [@SupConf](https://community.auth0.com/u/SupConf)\
**Post date:** [January 25, 2024, 3:05pm UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/1 "2024-01-25T15:05:07Z")

</div>

Hello everyone

I’m new to managing user profiles via API and was wondering if it was somehow possible to update all the mail domains of a given group of users.

I’ll give you an example to make it easier, I would need to vary the user [test@a.com](mailto:test@a.com) to [test@b.com](mailto:test@b.com) and if possible automatically check the user email.

Thank you all!

---

<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:** [January 25, 2024, 8:07pm UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/3 "2024-01-25T20:07:27Z")

</div>

Hi @SupConf,

I understand that you are looking to bulk update users.

Please refer to our [Bulk update or delete users](https://community.auth0.com/t/bulk-update-or-delete-users/88546) knowledge solution for more details on this request.

Let me know if you have any questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![SupConf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supconf/32/59774_2.png) [@SupConf](https://community.auth0.com/u/SupConf)\
**Post date:** [January 26, 2024, 9:08am UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/4 "2024-01-26T09:08:16Z")

</div>

Hi @rueben.tiow , Thank you for the information you shared.  
I was able to extract the list of email addresses to be changed by following the link you provided.Now I am trying to update the info using Postman but following the guide I am getting stuck with the syntax.  
The problem is that I don’t know what command to use to make the first part of the email stays unchanged and only the second part containing the domain changes.

Thanks

---

<div class="post-metadata">

**Author:** ![SupConf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supconf/32/59774_2.png) [@SupConf](https://community.auth0.com/u/SupConf)\
**Post date:** [January 30, 2024, 8:16am UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/5 "2024-01-30T08:16:19Z")

</div>

Hi Ruben,  
can you help me on the record update?

Thanks!

---

<div class="post-metadata">

**Author:** ![SupConf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supconf/32/59774_2.png) [@SupConf](https://community.auth0.com/u/SupConf)\
**Post date:** [February 5, 2024, 1:30pm UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/6 "2024-02-05T13:30:36Z")

</div>

Hi all,  
can somebody help me on the update of the email?

Thanks!

---

<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:** [February 5, 2024, 8:09pm UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/7 "2024-02-05T20:09:52Z")

</div>

Hi @SupConf,

Thanks for your replies.

> [@SupConf](#):
>
> The problem is that I don’t know what command to use to make the first part of the email stays unchanged and only the second part containing the domain changes.

With the extracted list of email addresses, you will want to convert them to the preferred email address before passing that data to the Update a user request in Postman.

You could perform a string split of the email address, excluding the old domain, and then append your preferred domain to the string.

Hoped this helps!

Cheers,  
Rueben

---

<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:** [February 19, 2024, 8:10pm UTC](https://community.auth0.com/t/how-to-update-to-multiple-users-at-the-same-time-the-mail-domain/125714/8 "2024-02-19T20:10:52Z")

</div>

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