# User change's email - How to change emails for all rows with old email?!

**URL:** <https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324>\
**Category:** Ask for Help\
**Created:** [November 4, 2022, 3:26pm UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324 "2022-11-04T15:26:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jlee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jlee/32/37250_2.png) [@Jlee](https://community.glideapps.com/u/Jlee)\
**Post date:** [November 4, 2022, 3:26pm UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/1 "2022-11-04T15:26:30Z")

</div>

User change’s email - How to change emails for all rows with old email?!

How do i go about this issues, is there no way to use the Row ID as the row owner?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 5, 2022, 1:05am UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/2 "2022-11-05T01:05:07Z")

</div>

So you have recorded related rows (in other tables, other than the users table) with the user’s email, and now a user wants to change their email?

What I usually do is record the user’s rowID, instead of their email.

> [@Jlee](#):
>
> is there no way to use the Row ID as the row owner?

No, but you can use a roles setup I guess?

---

<div class="post-metadata">

**Author:** ![Jlee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jlee/32/37250_2.png) [@Jlee](https://community.glideapps.com/u/Jlee)\
**Post date:** [November 5, 2022, 9:34am UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/3 "2022-11-05T09:34:58Z")

</div>

hi there, thanks for the fast reply and your support!

I tried to use User Row ID’s with the row owners however did not work. I didnt think roles as sufficient for security?

Thanks

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 6, 2022, 1:15am UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/4 "2022-11-06T01:15:35Z")

</div>

Roles is another security feature for Glide, I would argue it’s a more advanced row owner setup.

> **[Roles](https://www.glideapps.com/docs/reference/security-and-user-data/roles)**
>
> Define roles for your users and build different expereriences and permissions for those groups.

---

<div class="post-metadata">

**Author:** ![shsouther](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shsouther/32/55234_2.png) [@shsouther](https://community.glideapps.com/u/shsouther)\
**Post date:** [March 6, 2023, 9:58am UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/5 "2023-03-06T09:58:14Z")

</div>

I do not see an answer to this issue here. To use roles you would have to create a roles for every user.

I would be nice if row owner would work on Row ID in addition to the email address. Users can change their email addresses and that prevents them from seeing rows that were created with the old ID.

You can also get the upto date owners email address using computed fields, but row owner will not work with them either. Need a solution here? Workaround or product enhancement is needed.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 7, 2023, 12:21am UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/6 "2023-03-07T00:21:57Z")

</div>

So ultimately you need the ability to change email addresses, and also make sure that the new email will also get access to the old email’s data, with security in place like a row owners setup?

As stated above, I don’t think at the moment Glide has a good way to do that except a roles setup with a rowID approach, but that can get expensive. A workaround is to have an automation flow to change all email values in related tables to the new email when an email is changed.

---

<div class="post-metadata">

**Author:** ![shsouther](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/shsouther/32/55234_2.png) [@shsouther](https://community.glideapps.com/u/shsouther)\
**Post date:** [March 7, 2023, 2:40am UTC](https://community.glideapps.com/t/user-changes-email-how-to-change-emails-for-all-rows-with-old-email/53324/7 "2023-03-07T02:40:01Z")

</div>

I appreciate your comment ThinhDinh. Yes, not only cost, but you would need a unique roll for each user. Not too efficient. I thought about the automation also, but changing all of the related to the user with the the new email doesn’t make any sense when using the glide assigned row ID could simply and reliably do it.
