From ea16fd91ea8b4d31c9034e232f2ba0d045402c00 Mon Sep 17 00:00:00 2001 From: Harshil Date: Mon, 7 Dec 2020 10:03:26 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20FAQ=20and=20minor=20fix?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/nodes/nodes-library/nodes/Slack/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/nodes/nodes-library/nodes/Slack/README.md b/docs/nodes/nodes-library/nodes/Slack/README.md index 9a72d190e..636a26133 100644 --- a/docs/nodes/nodes-library/nodes/Slack/README.md +++ b/docs/nodes/nodes-library/nodes/Slack/README.md @@ -71,7 +71,7 @@ The Start node exists by default when you create a new workflow. ### 2. Slack node (create: channel) -This node will create a new channel in your Slack workspace. This operation requires the `channel:manage` scope. Add this scope under the ***Bot Token Scopes*** section on Slack. You can refer to the official documentation on [Scopes and permissions](https://api.slack.com/scopes) to learn more. +This node will create a new channel in your Slack workspace. This operation requires the `channel:manage` scope. Add this scope under the ***Bot Token Scopes*** section on Slack. You can refer to the [FAQs](#_2-how-to-add-oauth-scopes-to-a-slack-app) to learn how to add scopes. 1. Select 'Access Token' from the ***Authentication*** dropdown list. 2. You'll have to enter credentials for the Slack node. You can find out how to enter credentials for this node [here](../../../credentials/Slack/README.md). @@ -160,6 +160,19 @@ To create a private channel, follow the steps mention below. 3. Click on the ***Add Field*** button. 4. Toggle ***Is Private*** to `true`. +### 2. How to add OAuth Scopes to a Slack app? + +Your app needs appropriate scopes and permissions to perform actions. For example, if you want to create a new channel, your app requires the `channel:manage` scope. To add scopes and permissions, follow the steps mentioned below. +1. Navigate to the [Slack App dashboard](https://api.slack.com/apps) page and select your app. +2. Click on 'OAuth & Permissions' under the ***Feature*** section on the left sidebar. +3. Scroll down to the ***Scopes*** section. +4. If you're building a bot, click on ***Add an OAuth Scope*** under the ***Bot Token Scopes***. +5. Select the permissions you want to give to your bot from the dropdown list. +6. If you want the app to access user data and act on behalf of users that authorize them, add scopes under the ***User Token Scopes***. +7. When you add new scopes, Slack will ask you to reinstall the app. Click on 'reinstall your app' on the top of the page and reinstall the app. + +You can refer to the official documentation on [Scopes and permissions](https://api.slack.com/scopes) to learn more. + ## Further Reading - [Giving kudos to contributors with GitHub, Slack, and n8n 👏](https://medium.com/n8n-io/giving-kudos-to-contributors-with-github-slack-and-n8n-b3f5f4a653a6)