Is it possible to invite all users (the entire team) to a new Slack channel? It seems there are limits to the number of people that can be invited at once.
-
Related. (Possible duplicate?) Invite multiple Slack users to a channel– aleDec 2, 2016 at 19:04
-
Yeah, that is related but not really a duplicate. That question does not provide a solution to my problem.– AbramDec 2, 2016 at 19:08
-
1If you are using a multi-workspace solution (Slack Enterprise Grid) your user list may include people outside your workspace. If your #channel is workspace-specific, these solutions potentially add ALL users to the channel.– ChoovermoniumMar 5, 2018 at 17:09
-
2Check the "Channel Tools" answer by @jai. A lot of the other responses don't work any longer, but that integration is solid. Just tried it for inviting 100+ users to an existing channel.– Alex GSep 18, 2020 at 0:26
-
@Abram, do you feel like updating the accepted answer? jonayreyes' answer is clearly superior.– BrondahlFeb 15, 2021 at 10:03
6 Answers
This is finally possible with /invite @listname
– when you type /invite @
auto suggest will give you more options than via the "invite people" link.
-
I get
/invite @username #listname
to work, but only for adding one user at a time...– NagelJan 14, 2020 at 21:36 -
1
Found a more straightforward solution. No script, no extensions:
- Type the
/who
command on a channel where you have the (most) people you want to add. - Copy the output
- Paste it in the channel where you want those people to get invited to
- Press Intro/Enter key
Slack will ask you what to do with all those people "that are not in the channel yet". If you press the Invite button you'll get everybody invited
-
I didn't actually test this answer, but assuming it works, it should be marked the correct solution. I have assigned this as the solution, but would appreciate confirmation from others that the solution works. Thanks!– AbramDec 27, 2018 at 21:12
-
2It worked for me. It did put a post in the new channel with everyone's @ in it. But that's fine by me. Mar 6, 2019 at 23:13
-
9This is however limited to show the first 99 members of the channel (which you can copy/paste).– JanMar 18, 2019 at 10:56
-
2
-
2You can also paste the names into the "Add People" list. Slack will parse out all the commas, and recognize the @mentioned names. This can help you skip posting an actual message to the room.– MikhailSep 18, 2020 at 22:59
Since @Abram solution stopped working I played a little bit. This one works partially for me now, you might need to run it a couple times though
His instructions: Just browse to the appropriate channel and paste this script (below) into your Chrome/Firefox dev console and hit enter. Then wait for the script to run until it completes. It might take time as there is a limit to how many users may be invited at once. The script will loop until all team members are invited.
var foundAny=false;
function selectAllByLetter(remainingLetters) {
console.log(remainingLetters)
var letter = remainingLetters.pop();
$("#channel_invite_filter").val(letter).trigger("input");
setTimeout(function() {
$(".channel_invite_member:not(hidden)").each(function(i, obj) {
foundAny=true;
this.click();
});
if (remainingLetters.length) {
selectAllByLetter(remainingLetters);
} else {
setTimeout(function() {
console.log("Inviting them all!")
$('.invite_go').click()
},400)
}
},300);
}
function inviteAllUsers() {
foundAny=false;
setTimeout(function () {
setTimeout(function() {
$('#channel_actions_toggle').click();
},100)
setTimeout(function() {
$('#channel_invite_item').click();
},200)
//Enter each letter to trigger searches
var remainingLetters = ["a","b","c","d","e","f","g","h","i","j","v","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
selectAllByLetter(remainingLetters);
if (foundAny) {
inviteAllUsers();
}
}, 4000);
}
inviteAllUsers();
-
2Thanks for providing a working answer. I will remove mine since it has stopped working.– AbramMar 21, 2017 at 3:07
-
2
-
Yes it does. Also, for some reason with big groups you need to run it twice Apr 11, 2018 at 23:42
-
-
Yeah, they changed the whole page, therefore the script stopped working May 25, 2020 at 22:34
If there are more than 100 members to be invited.
Use Channel Tools app.
Channel Tools helps you bulk invite all members from one Slack channel to another
If you have been wondering how to invite all team members to a new Slack channel, Channel Tools is your answer. Our app makes it super easy to add members to your Slack channel in bulk. If you are managing a large team or a community, you have faced this problem one way or the other. There is no easy way to invite users in bulk. If you have tried doing it manually, we know your pain. But no more.
The app comes with /invite_channel [channel]
command. Install the app to your Slack team first. Next, the bot user, @Channel Tools
needs to be added to both the source and the destination channels.
Invite
@Channel Tools
to the source channel./invite @Channel Tools #design
(If you want to add users from #design)Invite
@Channel Tools
to the destination channel./invite @Channel Tools #team
(If you want to add users to #team channel)Now, go to the destination channel, #team, and type:
/invite_channel #design
- Follow the instructions, once the task is done, all the members from
#design
should be present in#team
channel. At the end of the process, it gives you information on the number of users invited, common users in both the channels, and errors, if any.
How to invite all users in a workspace to a new channel?
Slack adds all users to the #general
channel by default (it should be the same unless you have changed this in your team preferences). Use #general
as the source channel while using /invite_channel
command, and you should be good.
/invite_channel #general
Pros: Easy to use. Works for any number of users. It's a Slack app, if you can remember the native command /invite
, then it is easy enough to remember /invite_channel
as well. Good for repetitive tasks.
Cons: It would be an overkill if you are looking to invite ~50 users, or it is a one-off task.
The app is available here.
If the number of users to be invited is less than 100
Use /who
command:
Go to the channel from where you want to add users in bulk. Typically,
#general
is where most of the users are. Enter/who
This gives a list of all the users in that channel. Copy the list.
- Go to the channel where you want to invite them
- In the new message panel, paste the list that you copied in the previous step.
- Slack would ask you to invite the users who are already not present in the channel.
Pros: Simple approach. No external app, extension, script needed.
Cons: /who
command is limited to 100 members. If some users are already present in the channel, the message with the list will send them a notification. Also, the list of users is a public message, which might not be desirable.
If your use case is more complex, you are probably better off with the previous method.
Disclaimer: I'm the maker of Channel Tools app
-
Thanks @Jai Pandya for this tool, this is really time-saving with easy UI.– cpzAug 31, 2020 at 16:15
-
1
Wrote a script that also does the same thing.
Steps:
1. Go to channel page
2. Copy/paste code into browser console
All users will be added.
//////////////////////////////
// AFTER.JS Module
//////////////////////////////
var After = function () {
this._totalTime = 0;
};
// It's prototype
var protoAfter = {
// After (time) seconds, run a handler
after: function (time, handler) {
this._totalTime += time;
setTimeout(function () {
handler();
}, this._totalTime * 1000);
return this;
}
};
$.extend(After.prototype, protoAfter);
//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ End of After section
var first = "a",
last = "z";
var after = new After();
after.charIndex = first.charCodeAt(0);
for (var i = first.charCodeAt(0); i <= last.charCodeAt(0); i++) {
after
.after(0.3, function () {
$('#channel_actions_toggle').click();
})
.after(0.3, function () {
$('#channel_invite_item').click();
})
.after(0.3, function () {
$("#channel_invite_filter").focus();
$("#channel_invite_filter").val(String.fromCharCode(after.charIndex)); // type in character
$("#channel_invite_filter").trigger("input");
after.charIndex++;
})
.after(0.5, function () {
$(".add_icon").click();
})
.after(0.5, function () {
$(".invite_go").click();
})
.after(0.5, function () {
$("#fs_modal_close_btn").click();
})
}
If you're not a programmer, there is a chrome extension that will do the job. https://chrome.google.com/webstore/detail/slack-invite-all/okakcmghmbmdgbccjfclfkeednhhlpeg
-
4
-
-