Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invite new users to specific channel automatically #65

Open
jackiehluo opened this issue Sep 28, 2016 · 7 comments
Open

Invite new users to specific channel automatically #65

jackiehluo opened this issue Sep 28, 2016 · 7 comments

Comments

@jackiehluo
Copy link

Is there a way to specify a specific channel for new users who are invited through this app? Not as single-channel guests—they can have access to any channel, but I want to make sure that they're a part of a specific one from the start.

@outsideris
Copy link
Owner

I think it is not a part in this project. You can set default channels for new member in Slack settings.

2016-09-30 02 21 19

@jackiehluo
Copy link
Author

Hey! Fair enough, but that's not exactly what I meant. I can't use the default channels feature in Slack because I want to be able to invite different groups of people to different channels upon joining (for instance, new members of a sales team join all of the sales channels by getting their invite at slack.company.com/sales).

@outsideris outsideris reopened this Sep 29, 2016
@outsideris
Copy link
Owner

In fact, invitation API is not an official API that slack support. I think it is possible to set channels to new users will be join as when I test the APIs. It is an interesting feature request.
Do you want to launch apps for groups separately, or give users to select groups that they want, in UI. I think latter is more hard to make for general purposes.

@julianschiavo
Copy link

Former maybe?

@gabedeko
Copy link

Hello,

Has there been any update or progress on this feature? I would like to invite users to a specific channel as a guest.

Thanks.

@jandreaucodes
Copy link

jandreaucodes commented Feb 4, 2019

I just forked this to do precisely that.

In /routes, edit index.js and below:
token: config.slacktoken,
add:
ultra_restricted: true, channels: config.channel

Then in your config.js, add:
channel: 'CHANNEL ID HERE'|| 'What channel should the user auto join?', (Note, you must use channel ID, not channel name)

(Put that anywhere in config.js between the opening and closing curly braces.

This will allow you to only allow registered users to be locked to the channel you specify. If you need to use more than one channel, use restricted instead of ultra_restricted and input multiple channels separated by comma.

You can't invite different people via different URLs this way, though. You'd have to build in more routes to accomplish that, which is a bit more complex than a comment on the issue would allow.

@Bogidon
Copy link
Contributor

Bogidon commented Feb 24, 2020

^
• note, channel id not name
• and if you're deploying to aws, change sam-template.json and deploy.sh too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants