<div dir="ltr"><div>so simple, thanks</div><div>Lionel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 10 juin 2021 à 09:23, Lionel Bargeot <<a href="mailto:lionel.bargeot@gmail.com">lionel.bargeot@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all<br>
<br>
In a scientific project we will use Lizmap to get informations about <br>
hundreds of farms.<br>
<br>
We need to<br>
<br>
- create hundred's of accounts (login, password, email)<br>
<br>
- use "filters by group" and so create hundred's of groups and put each <br>
new user in it's own group.<br>
<br>
I've allready identifyed a good way to create users with this command line :<br>
<br>
php lizmap/scripts/script.php jcommunity~user:create -v <br>
--no-error-if-exists myuser <a href="mailto:user@mail.org" target="_blank">user@mail.org</a> secretpassword<br>
<br>
I have also seen this post <br>
<a href="https://github.com/3liz/lizmap-web-client/issues/836" rel="noreferrer" target="_blank">https://github.com/3liz/lizmap-web-client/issues/836</a> but it's not enough <br>
for group creating (or I missed somthing).<br>
<br>
If i want to create myusergroup perhap's the best way is to inject sql <br>
queryes in jauth.db<br>
<br>
INSERT INTO jacl2_group VALUES('myusergroup','mygroup',1,NULL); (obtain <br>
with making a dump of the table)<br>
<br>
INSERT INTO jacl2_user_group VALUES('myuser','myusergroup');<br>
<br>
Do you know if it's enough ? I asked myself particularly about <br>
jacl2_rights and jacl2_subject.<br>
<br>
Thanks for all<br>
<br>
Regards<br>
<br>
Lionel<br>
<br>
<br>
<br>
</blockquote></div>