# Grouping users in public channels

**URL:** <https://forums.rocket.chat/t/grouping-users-in-public-channels/4016>\
**Category:** Community Support\
**Created:** [June 24, 2019, 9:39am UTC](https://forums.rocket.chat/t/grouping-users-in-public-channels/4016 "2019-06-24T09:39:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gina](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/gina/32/915_2.png) [@Gina](https://forums.rocket.chat/u/Gina)\
**Post date:** [June 24, 2019, 9:39am UTC](https://forums.rocket.chat/t/grouping-users-in-public-channels/4016/1 "2019-06-24T09:39:07Z")

</div>

Hi all, is there a way to group users together in channels? For example: when I add a new public channel I’d like to immediately include all members on my server. Now I have to add them one by one. Is there a quick way to add them all? Thank you.

---

<div class="post-metadata">

**Author:** ![shoei101](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@shoei101](https://forums.rocket.chat/u/shoei101)\
**Post date:** [June 25, 2019, 1:40pm UTC](https://forums.rocket.chat/t/grouping-users-in-public-channels/4016/2 "2019-06-25T13:40:53Z")

</div>

good question, i’d like to know too. i manually added all our users to a channel then made that channel default so any new users logging in would auto join the channel

---

<div class="post-metadata">

**Author:** ![Gina](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/gina/32/915_2.png) [@Gina](https://forums.rocket.chat/u/Gina)\
**Post date:** [July 23, 2019, 8:58am UTC](https://forums.rocket.chat/t/grouping-users-in-public-channels/4016/3 "2019-07-23T08:58:24Z")

</div>

Hi all, is this really such a strange feature? How do other organisations work with Rocketchat? Because for us it becomes pretty impossible to work with RC if we have to manually add \>60 people to each channel we create. Also even if you want to it manually, there’s no easy way to compare who has access to a channel and who doesn’t.

Could someone please respond to this before I have to start installing Slack? Thank you!

---

<div class="post-metadata">

**Author:** ![alex.sapon](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/alex.sapon/32/1137_2.png) [@alex.sapon](https://forums.rocket.chat/u/alex.sapon)\
**Post date:** [July 24, 2019, 11:36am UTC](https://forums.rocket.chat/t/grouping-users-in-public-channels/4016/4 "2019-07-24T11:36:51Z")

</div>

You can do it throu Rocket.Chat API. Use this command: channels.addAll ([https://rocket.chat/docs/developer-guides/rest-api/channels/addall/](https://rocket.chat/docs/developer-guides/rest-api/channels/addall/))  
Example:  
curl -H “X-Auth-Token: ‘user\_token’” -H “X-User-Id: ‘admin\_userID’” -H “Content-type: application/json” [http://localhost:3000/api/v1/channels.addAll](http://localhost:3000/api/v1/channels.addAll) -d '{ “roomId”: “roomID” }

---

<div class="post-metadata">

**Author:** ![Gina](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/gina/32/915_2.png) [@Gina](https://forums.rocket.chat/u/Gina)\
**Post date:** [July 30, 2019, 11:50am UTC](https://forums.rocket.chat/t/grouping-users-in-public-channels/4016/5 "2019-07-30T11:50:29Z")

</div>

Hi Alex,  
Thanks, it’s cool that there’s a channels.addAll function, but /invite-all-from #room sort of does the same. What I’d prefer is that I can group users, say for example by department. And that they can easily then add departments to channels.

OR, alternatively what would be nice is a simpler way of verifying who is in a room and who is not yet. Currently you have to look for users manually.
