Creating a Slack application
In Slack, users must create an application to connect to Slack from Maximo IT.
Before you begin
About this task
This section describes the tasks performed by a System Administrator to create an application in Slack for the users in the team.
Procedure
-
Go to https://api.slack.com/apps and create a
Slack application as per the instructions.
Note: Below instructions are given just for reference, you must follow updated instructions given in https://api.slack.com/apps.
- Click on Create New App.
- In the Create a Slack App dialog, enter a name for your application, for example: Maximo IT, and select the workspace that you signed in to.
- Click on Create App to create Slack application.
- On the Slack API page, click the Basic information tab and scroll down to the App Credentials section.
-
Make a note of the Client ID, Client Secret, and the Signing
Secret values. You will need them when configuring Slack in Maximo
IT.
Tip: Click the Show button in each field to see the values.
- Scroll to section Install your app to your workspace and click on OAuth & Permissions.
-
In the Redirect URLs section, add the following redirect URL:
https://SlackProxy Service URL/SlackProxy/oauth
where SlackProxy Service URL is the URL of the Slack Proxy Service which is installed with Manage.
-
Steps to get the Slack Proxy Service URL:
- Log in to the Open Shift Console where MAS-Manage is installed.
- Go to Networking > Routes.
- From Project Dropdown, choose Manage Project and search for Slack Proxy Service.
- Copy the URL from the Location field. You now have the Slack Proxy Service URL.
Note: The Slack Proxy Service URL must be Public and Secure. -
Scroll to the Scopes section and click on Add an OAuth
Scope for Bot Token Scopes and add the following
permission scopes to install app to workspace.
- channels:read
- groups:read
- mpim:read
- im:read
- users:read
Similarly, add at least one permission scope for User Token Scopes and more as needed.
Tip:- In Slack, Scopes define the API method that your Slack App can call.
- You can add any number of OAuth Scope for example: chat:write for Bot Token Scopes and admin for User Token Scopes.
- Click on Install App to Workspace.
- Click Allow to give permission to access your workspace.
- You will get a OAuth Access Token and it will be used at the time of configuring Slack in Maximo IT.