# Add script to add user to user group

**URL:** https://meta.discourse.org/t/add-script-to-add-user-to-user-group/268478
**Category:** Feature
**Tags:** automation
**Created:** [June 15, 2023, 3:46pm UTC](https://meta.discourse.org/t/add-script-to-add-user-to-user-group/268478 "2023-06-15T15:46:09Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [October 9, 2023, 6:30am UTC](https://meta.discourse.org/t/add-script-to-add-user-to-user-group/268478/3 "2023-10-09T06:30:53Z")

</div>

Also requested in:

> [@An 'add to group' script for the Discourse Automation](https://meta.discourse.org/t/an-add-to-group-script-for-the-discourse-automation/231216/1):
>
> 1. 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.

---

_[View the full topic](https://meta.discourse.org/t/add-script-to-add-user-to-user-group/268478)._
