Does anyone know how to setup an event-driven assignment of a user to an existing group based on their membership in a different group? Events could include a page load, after enrollment, when a user is assigned to a group, etc.
For example, say I have groups 1, 2, 3, 4, A, and B already existing in Moodle. Anytime someone is added to either group 1 or 2, I would like them to also be added to group A. Anytime someone is added to either group 3 or 4, I would like them to be also added to group B.
Any advice is appreciated! Thanks!