Setting up Slack and Microsoft Teams
On this page
Besides e-mail, notification channels can send direct messages in Slack and Microsoft Teams. The application has built-in, shareable step-by-step guides with screenshots of the provider's pages:
- Slack:
/guides/slack-setupon your installation (for examplehttps://wsh.example.com/guides/slack-setup); - Microsoft Teams:
/guides/teams-setup.
The channel dialog links to them (Útmutató a … beállításához). Anyone with the link can open them; they need no sign-in.
Slack#
- On the Slack API Your Apps page, create a new app, name it and choose your Slack workspace.
- Under OAuth & Permissions, add the Bot Token Scope
chat:write. - Request installation (Request to install), and after approval click Install App to Workspace.
- Copy the Bot User OAuth Access Token.
- In WorkSmartHub, create a notification channel of type Slack and paste the token. Test and save.
- Optional: change the app's name and logo in Slack (the name users see).
Each user enters their Slack felhasználónév (Slack user name) on their Profil page to receive messages.
Microsoft Teams#
- In the Azure portal create a Bot Channels Registration (Azure Bot): name it, choose the subscription and resource group. An app registration with the same name is created.
- Under the bot's Channels, add Microsoft Teams.
- Open the app registration (App registrations), copy the Application (client) ID, and under Certificates & secrets create a client secret.
- In the Teams desktop app copy the Link to team of your team.
- In WorkSmartHub, create a notification channel of type Teams with the Application (client) ID, the secret as Bot AppPassword, and the team link. Save.
- Allow custom apps in the Microsoft Teams admin centre, download the notification app package offered by the guide, import it in Teams, set the bot's App ID in it, and install it to the team.
Each user enters their Teams email on their Profil page.
The Teams service URL used by the server is Notifications.Teams.ServiceUrl in appsettings.json (default https://smba.trafficmanager.net/emea/).