Maintain user groups

maintain user groups and import groups from external LDAP if configured