Installing KanBo Teams App

Table of Contents

Overview

Integrating KanBo with Microsoft Teams combines KanBo’s project management capabilities with Microsoft Teams’ rich communication features. Workspaces can be synchronised with teams and spaces with channels, allowing users to join related KanBo environments effortlessly. Files added to a Teams channel appear in the corresponding KanBo space, and vice versa, ensuring consistency and easy access across platforms.

Follow the instructions below to connect KanBo to Microsoft Teams.

Creating an Azure Bot

To create an Azure Bot:

  1. Enter the name you want to use for your bot.
  2. Choose the subscription and the resource group your KanBo is in.
  3. Select the regional data residency and the region where your KanBo is located.
  4. Change the pricing tier to free.
  5. Leave the rest of the options unchanged (Multi Tenant, Create new Microsoft App ID).
  6. Select Review + create, and then select Create.
  7. After creation is complete, go to the Azure Bot and select Settings > Channels.
  1. Select Microsoft Teams.
  1. Accept the Terms of Service. Afterwards, leave Microsoft Teams Commercial selected, and than select Apply at the bottom.
  2. After that, select Configuration.
  1. Enter the URL of your KanBo (https:// included) at the end of the messaging endpoint, preceded by /plugins/teams-app/bot, and select Apply.
  2. Next to the Microsoft App ID field, select Manage Password.
  1. Remove the automatically created client secret and generate a new one by selecting New client secret. We suggest creating a new one for 24 months and naming it “KanBo” to make things clearer.
  1. Copy the client secret and save it somewhere.
  2. Next, go to Overview.
  1. Copy the Application (client) ID and the Directory (tenant) ID for later use.
  2. Select Add a Redirect URI.
  1. Select Add a platform > Web.
  1. In Redirect URI, paste “https://token.botframework.com/.auth/web/redirect”, check Access tokens and ID tokens boxes, and then select Configure.

Granting permissions in Microsoft Entra ID

  1. Go to Microsoft Entra admin center > App registrations.
  2. Find the app registration of KanBo and open it.
  3. Go to API permissions.
  1. Select + Add a permission, then select Microsoft Graph.

You have the option of choosing between delegated and application permissions.

The registration should include these permissions:

  • List of delegated permissions:
    • TeamsActivity.Send
  • List of application permissions:
    • AppCatalog.Read.All
    • TeamsAppInstallation.ReadWriteForUser.All
    • ChannelMessage.Read.All
  1. After adding all the required permissions, select Grant admin consent for KanBo.
  2. Select Yes.

Configuring KanBo app settings

  1. Go to the KanBo appsettings.json file and verify that the following lines are present:
{
  "type": "teams-app.selfhosted",
  "children": [
    {
      "type": "env",
      "children": [
        {
          "type": "source",
          "content-path": "PATH-HERE"
        },
        {
          "type": "teams-app",
          "app-name": "KanBo.TeamsApp",
		  "bot-app-id": "CLIENT ID",
		  "bot-app-secret": "CLIENT SECRET",
		  "bot-app-tenant-id": "TENANT ID",
		  "bot-app-type": "MultiTenant",
		  "bot-kanbo-connection": "kanbo-connection"
        }
      ]
    }
  ]
},
  1. Your KanBo folder should contain a folder called “KanBo.TeamsAppPlugin”. Copy the path to this folder and replace “PATH-HERE” in the code with the path.

Remember that the path should have either forward slashes or double backward slashes.

  1. The Client ID, Client Secret, and Tenant ID are values that you copied when creating and configuring the Azure Bot.
  2. After that, save the appsettings.json file and restart your KanBo app.

Teams app setup

  1. After restarting KanBo, go to: https://yourkanbourl/plugins/teams-app/setup.
  2. You should see a page like this:
  1. Select Expose an API, and then next to the Application ID URI, select Add.
  1. Select + Add a scope.
  1. Fill it with the information from the setup page like this:
  1. From the setup page, add the authorized client applications.
  1. Go back to the Setup page and refresh it.
  2. If you completed the previous steps correctly, you should see this after refreshing the page:
  1. Select this to download the “KanBo.zip” file.
  2. Go to Microsoft Teams admin center.
  3. Select Teams apps > Manage apps > Actions > Upload new app.
  1. Upload your app:

You can now start using your KanBo app in teams.

Was this article helpful?

Please, contact us if you have any additional questions.