Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: BlScOfDe on September 12, 2023, 07:49:07 AM

Title: add all users
Post by: BlScOfDe on September 12, 2023, 07:49:07 AM
Hello,

my setup is a Mailu 2.0 https://mailu.io/2.0/ (https://mailu.io/2.0/) installation with Roundcube as webmail.

I'd like to migriate some mail users to the system and add some data to roundcube users after the migration, but at that point no roundcube users exist yet. I also can't wait for them to login in order to create a roundcube user.

So does anyone know a way to initially create a roundcube user for all mail users?
If inecessary user passwords can be aquired (i'd rather not :D)



Title: Re: add all users
Post by: BlScOfDe on September 12, 2023, 09:52:20 AM
It looks like i can just create the users in the users table with their email address and leave "preferences" empty (NULL). That field will be filled with the client_hash upon the first login of the users.
But in the meantime i have a user / an user id i can work with.

That looks like the best and easiest solution.
Any objections? :D


Title: Re: add all users
Post by: SKaero on September 12, 2023, 10:05:15 AM
That would be the correct way to handle it for importing data.
Title: Re: add all users
Post by: BlScOfDe on September 13, 2023, 03:48:00 AM
Thanks for the confirmation