Y a-t-il un moyen d'ajouter programmatiquement à des groupes ?

Yes, that’s Plan B, but possibly with LDAP groups…