Open Thatoo opened 2 months ago
What would be great would be to be able to manage yunohost users from within dolibarr member management tools:
yunohost user create username -F FULLNAME -p PASSWORD -d DOMAIN && yunohost user update username --add-mailforward MAIL && yunohost user group add adherents username
yunohost user delete username
yunohost user group remove adherents username
yunohost user group add adherents username
yunohost user group add communication username
yunohost user group remove communication username
I would find it very cool to add an option in config panel to make Dolibarr be able to create and delete ynh users (yunohost user create DolibarrMember) when a member is added or removed. Ideally, it would be nice to be able to select groups this newly ynh created user would automatically join when created.
Moreover, an other option could be added in config panel, the name of a Dolibarr special member category such as "inactive". When a Dolibarr member join this special member category, a script would remove the associated ynh user from the groups chosen above and when the Dolibarr member is removed from this special member category, the associated ynh user would be added again to the groups.