An 'add to group' script for the Discourse Automation

In Discourse Automation, it would be really useful to be able to add a user to a group automatically, and be removed from a group automatically.

Use cases:

  1. To have the function and access of a group apply to those who have completed a specific task
  2. To enable functional sub-groups. For example, if a user is put in a group of Data Scientists, they are also put in the broader group of IT Professionals. If removed from the IT Professionals group, they are also removed from the Data Scientists group.
  3. To allow the membership of groups to be granted and revoked via SQL (from Badges - this really expands the scope)
3 Likes