# Is it ok to update external\_id on discourse database?

**URL:** <https://meta.discourse.org/t/is-it-ok-to-update-external-id-on-discourse-database/267592>\
**Category:** SSO\
**Created:** [June 7, 2023, 8:35pm UTC](https://meta.discourse.org/t/is-it-ok-to-update-external-id-on-discourse-database/267592 "2023-06-07T20:35:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nicolas\_Barrera](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicolas_barrera/32/287091_2.png) [@Nicolas\_Barrera](https://meta.discourse.org/u/Nicolas_Barrera)\
**Post date:** [June 8, 2023, 1:56pm UTC](https://meta.discourse.org/t/is-it-ok-to-update-external-id-on-discourse-database/267592/3 "2023-06-08T13:56:20Z")

</div>

Yes.. during external account merges I am respecting the oldest account… but sometimes that’s not what I need.

some accounts interact with the forum (type A, letsay) and some other accounts are not meant for that (type B).

so if they first create a type B account…  
and later they create a type A account, they do sso with it on the forum

and later they merge A & B and honor the oldest account which has a different external\_id

so yes…  
I need to come up with a solution for my external system thingy…

but I think I will setup a daily cron that checks if any of this happened and fixup the external\_ids for the moment.

thank you!

---

_[View the full topic](https://meta.discourse.org/t/is-it-ok-to-update-external-id-on-discourse-database/267592)._
