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

Channels:write is not an option under Oauth section anymore #12

Open
avrooyen opened this issue Aug 3, 2022 · 7 comments
Open

Channels:write is not an option under Oauth section anymore #12

avrooyen opened this issue Aug 3, 2022 · 7 comments

Comments

@avrooyen
Copy link

avrooyen commented Aug 3, 2022

Thank you for this scripts. Its going to make managing 100's of channels much easier. One issue I ran into is I could only find these three options for Channnels in scopes (OAuth and Permissions). I'm assuming they replaced the :write with :manage likely?

  - channels:read
  - channels:manage
  - channels:join
@jamietsao
Copy link
Owner

I believe you are trying to use a bot token vs a user token. In the README, I make a mention of this:

Add the following permission scopes to a user token (bot tokens aren't allowed channels:write):

Here's the API I'm using that needs channels.write: https://api.slack.com/methods/conversations.invite

It mentions scopes that are needed for bot vs user tokens. It looks like channels:manage will work for bot tokens. To be honest, I don't know or remember the difference between the two. Did you get the script to work?

@avrooyen
Copy link
Author

avrooyen commented Aug 4, 2022 via email

@jamietsao
Copy link
Owner

Hmm I'm not sure why no channels are being returned. This API is being used to retrieve channels: https://api.slack.com/methods/conversations.list and it requires the channels.read permission, which I assume you've added to your user token?

@avrooyen
Copy link
Author

avrooyen commented Oct 11, 2022 via email

@jamietsao
Copy link
Owner

@avrooyen - Any luck getting this to work? Can I close this issue?

@avrooyen
Copy link
Author

Up to you on closing. I did not get around to test this due to moving to another urgent project att. If you want to keep it open, I will go back and attempt this next week and give feedback.

@jamietsao
Copy link
Owner

@avrooyen - No problem, I'll leave it open. Let me know if you still have issues.

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

No branches or pull requests

2 participants