Internal user database - user remove

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

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?

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.