# 여러 사용자에게 관리자 권한 부여

**URL:** https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817
**Category:** Support
**Created:** [12월 21, 2024, 4:14오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817 "2024-12-21T16:14:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [12월 21, 2024, 4:14오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817/1 "2024-12-21T16:14:09Z")

</div>

특정 기준에 따라 사용자를 그룹화하여 여러 사용자에게 동시에 모더레이터(운영진) 권한을 부여할 수 있는 방법이 있을까요? 예를 들어, @example.com 이메일 도메인을 가진 모든 사용자에게 모더레이터 권한을 부여하고 싶습니다. 이러한 방식으로 일괄 모더레이터 권한 부여가 가능한가요?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [12월 21, 2024, 7:20오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817/2 "2024-12-21T19:20:05Z")

</div>

제가 아는 한 인터페이스에서는 이 작업을 수행할 수 없지만, API나 레일스 스크립트를 사용하면 가능합니다.

자동화 작업을 정당화하기 위해 얼마나 많은 사용자를 모더레이터로 승격해야 하나요? 군대를 꾸미려는 건가요? 😛

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [12월 21, 2024, 7:22오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817/3 "2024-12-21T19:22:34Z")

</div>

> [@Canapin](#):
>
> 자동화 작업을 정당화하기 위해 얼마나 많은 사용자를 모더레이터로 승격해야 합니까? 군대를 꾸미려는 건가요? 😛

하하하, 아니요, 그냥 모더레이터 권한으로 몇 가지 스크립트를 테스트해 보고 싶었을 뿐입니다. 🤣

> [@Canapin](#):
>
> 제가 아는 한 인터페이스에서는 이 작업이 불가능하지만, API나 Rails 스크립트를 사용하면 가능합니다.

[Discourse API](https://docs.discourse.org/) 문서에서 이 내용을 찾을 수 없었기 때문에, 이제 수동으로 확인해 봐야 할 것 같습니다.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [12월 21, 2024, 7:26오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817/4 "2024-12-21T19:26:33Z")

</div>

Rails 스크립트는 반드시 주의해서 작성해야 하며, 많은 사람들이 이 방법으로 "무언가를 처리"하는 것은 쉽게 문제가 발생할 수 있으므로 피하는 것이 더 낫다고 말합니다.

그럼에도 불구하고, **주의를 기울여** 수행하고, **무엇을 하는지 정확히 알고 있다면** , 이는 다양한 일괄 작업을 수행하는 데 강력한 도구가 될 수 있습니다.

일부 스크립트 예제는 다음에서 찾을 수 있습니다:

> [@Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349?u=cocoquark):
>
> Below you will find a collection of bulk operations that can be initiated from the command line. You will need SSH access, so if you are a hosted customer, you will need to contact the Discourse team about running these commands. warning Before working with the console it is extremely important that you have a recent backup. Mistakes can always happen! First thing to do is enter your site’s container: cd /var/discourse ./launcher enter app Additional Guides: [Performing bulk actions a…](https://meta.discourse.org/t/performing-bulk-actions-as-a-moderator/272832)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [12월 21, 2024, 7:28오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817/5 "2024-12-21T19:28:22Z")

</div>

> [@MihirR](#):
>
> [Discourse API](https://docs.discourse.org/)에 이 항목에 대한 언급이 없었으므로, 이제는 수동으로 확인해야 합니다.

이 문서는 불완전하며, 앞으로도 그럴 가능성이 높습니다. Discourse의 거의 모든 작업은 API를 사용합니다. 여기서 찾고자 하는 정보를 찾지 못했다면, API를 역공학(reverse-engineering)하는 것이 최선입니다. 방법은 꽤 간단합니다:

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576?u=cocoquark):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [12월 21, 2024, 7:32오후 UTC](https://meta.discourse.org/t/assigning-mod-status-to-multiple-users/343817/6 "2024-12-21T19:32:18Z")

</div>

공유해 주셔서 감사합니다! 이전에 Discourse API를 사용해 본 적이 있지만, 이제 이를 철저히 테스트해 보고 이걸로 무엇을 만들 수 있는지 알아보고 있습니다.
