I read the post here to invite all team members to a channel.
On the reverse side, I now need to invite a single team member to all my Slack channels.
Does anyone knows how I can do this?
slack
I read the post here to invite all team members to a channel.
On the reverse side, I now need to invite a single team member to all my Slack channels.
Does anyone knows how I can do this?
Best Answer
Found ! The code requires 2 parameters. You need a user that is already invited to all the channels in which you want to invite the new team member (in my case, any collaborator of my team is invited to all channels). You need the user ID of the new team member, and you need the connection token of the previous user which is already in all channels. You can get the user ID of the new team member through slack API using Postman for instance.
Once you have those parameters, replace them in then execute the below code :