# Преобразовать категорию в приватную и добавить пользователей в конкретную группу с доступом

**URL:** https://meta.discourse.org/t/convert-a-category-to-private-and-add-users-to-a-specific-group-with-access/290463
**Category:** Support
**Created:** [04.Январь.2024 03:11:52 UTC](https://meta.discourse.org/t/convert-a-category-to-private-and-add-users-to-a-specific-group-with-access/290463 "2024-01-04T03:11:52Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jericson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jericson/32/116215_2.png) [@jericson](https://meta.discourse.org/u/jericson)
#### Post date: [08.Январь.2024 16:52:03 UTC](https://meta.discourse.org/t/convert-a-category-to-private-and-add-users-to-a-specific-group-with-access/290463/4 "2024-01-08T16:52:03Z")

</div>

> [@Crius](#):
>
> Возможно, лучше просто скопировать и вставить ID пользователей и запустить функцию на Ruby.

Обычно я предпочитаю именно такое решение. Но, вероятно, имеет смысл воспользоваться примером из [примеров массовых операций](https://meta.discourse.org/t/administrative-bulk-operations/118349) и применить предложение `where` к объекту `User` в Rails. (Наличие тестовой среды в такой ситуации очень помогает!)

---

_[View the full topic](https://meta.discourse.org/t/convert-a-category-to-private-and-add-users-to-a-specific-group-with-access/290463)._
