# Discourse Automation용 '그룹에 추가' 스크립트

**URL:** https://meta.discourse.org/t/an-add-to-group-script-for-the-discourse-automation/231216
**Category:** Feature
**Tags:** automation, completed
**Created:** [6월 27, 2022, 12:24오후 UTC](https://meta.discourse.org/t/an-add-to-group-script-for-the-discourse-automation/231216 "2022-06-27T12:24:44Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [10월 9, 2023, 1:28오전 UTC](https://meta.discourse.org/t/an-add-to-group-script-for-the-discourse-automation/231216/4 "2023-10-09T01:28:46Z")

</div>

정말 유용하고, 1번과 3번 요구사항을 완벽하게 충족합니다!

남은 것은 2번인데, 최근 다른 누군가가 이미 이 부분을 요청한 것을 확인했습니다:

> [@사용자 그룹에 사용자 추가 스크립트 추가](https://meta.discourse.org/t/add-script-to-add-user-to-user-group/268478):
>
> There is currently a script in the Automation plugin to add users to a group based on a custom field. We would like a script to add users to a group, when they’re added to another group. The scenario is this: The Discourse Experts plugin expects you to only have one user group designated for “experts”. We are running an ambassador program and have two tiers of ambassadors—both of which are “experts” in this case. We would like to say, anyone added to “Ambassadors” or “Expert Ambassadors” also …

물론 그룹 가입을 감지하는 SQL이 포함된 배지를 만들고, 이어서 다른 배지를 할당하는 스크립트를 작성하는 방식으로 우회할 수는 있습니다. 하지만 이 방법은 다소 어색하고 번거로우며, 불필요한 배지들이 쌓이는 결과를 초래합니다.

---

_[View the full topic](https://meta.discourse.org/t/an-add-to-group-script-for-the-discourse-automation/231216)._
