Users csv or similar import

Hi friends!

I searched forums, howtos but…
Is there any script to batch import users to ldap or samba into Neth8?

Optionaly into mail server module - mailboxes, additionaly aliases?

Thanks.
Regards from Slovenia.

1 Like

Maybe it’s possible to adapt the scripts from NS7?

See also nethserver-sssd — NethServer 7 documentation

Example for creating a user: GitHub - NethServer/ns8-samba: NS8 Samba configuration

Yes, it goes with this:

api-cli run module/samba1/add-user --data - <<EOF
{
“user”: “UserName”,
“display_name”: “Name Surname”,
“password”: “hardsecret”,
“mail”: “username@domain.com”,
“locked”: false,
“groups”: [
“MailUsers”
]
}
EOF

1 Like