Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 2.33 KB

generate-slack-token.md

File metadata and controls

44 lines (24 loc) · 2.33 KB

Generate Slack Token with Slack App

The v6.x version and above of the Slack Notification task will be using the OAuth Access Token to authenticate with the Slack API. Use the following directions to create the OAuth Access Token.

1. Create New Slack App

Goto https://api.slack.com/apps and click on the Create New App button to create a new slack application.

Create slack app

In the next popup add a new App Name and select the Slack Workspace and click on the Create App button

Add app name

2. Select the Token Scopes

Once the application is created in the Add features and functionality section click on the Permissions button to set the token scopes

Click on permissions

Under User Token Scopes select the following scopes

  • chat:write - Send messages on the user's behalf
  • files:write - Upload, edit and delete files on the user's behalf
  • im:write - Start direct messages with people on the user's behalf
  • mpim:write - Start group direct messages with people on the user's behalf
  • users:read - View people in the workspace

Select token scopes

3. Install the Application in the Workspace

Next step is to install the application in the desired workspace and allow access to the requested scopes. Click on the Install App to Workspace button

Install app to workspace

Then on the concent screen click on Allow button to give the necessary permissions.

4. Copy OAuth Access Token & Use in Azure Pipelines

Finally, copy the OAuth Access Token and use it in the Slack API Token field.

Copy the access token