Author Topic: add all users  (Read 5790 times)

Offline BlScOfDe

  • Newbie
  • *
  • Posts: 3
add all users
« on: September 12, 2023, 07:49:07 AM »
Hello,

my setup is a Mailu 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)




Offline BlScOfDe

  • Newbie
  • *
  • Posts: 3
Re: add all users
« Reply #1 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



Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: add all users
« Reply #2 on: September 12, 2023, 10:05:15 AM »
That would be the correct way to handle it for importing data.

Offline BlScOfDe

  • Newbie
  • *
  • Posts: 3
Re: add all users
« Reply #3 on: September 13, 2023, 03:48:00 AM »
Thanks for the confirmation