# Internal user database - user remove

**URL:** <https://forum.inductiveautomation.com/t/internal-user-database-user-remove/16044>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 18, 2017, 8:53am UTC](https://forum.inductiveautomation.com/t/internal-user-database-user-remove/16044 "2017-11-18T08:53:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luka.koper498](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@luka.koper498](https://forum.inductiveautomation.com/u/luka.koper498)\
**Post date:** [November 18, 2017, 8:53am UTC](https://forum.inductiveautomation.com/t/internal-user-database-user-remove/16044/1 "2017-11-18T08:53:33Z")

</div>

Hi everyone.

I am trying to handle users in internal database using com.inductiveautomation.ignition.common.user.BasicUser class

It is not a problem to add a new user to db, problem that i have is to remove / alter it.

I cannot figure out about setting java.io.serializable id as constructor parameter. I guess this one points to user id in internal database.

Does anyone knows how to serialize user id? user id i get from system.user.getUser()

thank you,  
Luka

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 20, 2017, 3:59pm UTC](https://forum.inductiveautomation.com/t/internal-user-database-user-remove/16044/2 "2017-11-20T15:59:18Z")

</div>

Why are you attempting to alter users through in the internal DB at all (it’s very unlikely you’ll ever get this to work reliably) and not just using a database user source?

---

<div class="post-metadata">

**Author:** ![luka.koper498](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@luka.koper498](https://forum.inductiveautomation.com/u/luka.koper498)\
**Post date:** [November 20, 2017, 7:31pm UTC](https://forum.inductiveautomation.com/t/internal-user-database-user-remove/16044/3 "2017-11-20T19:31:20Z")

</div>

What i like with internal db is that when gateway backup is done, internal db goes with it.  
I could use user management component, but would like to have some additional options.
