Settings reference

Connect Microsoft Teams

A channel webhook for alerts, the bot that messages colleagues with approve and decline buttons, and the channels apps may post in.

Teams for notifications, buttons and apps

In the portal: Setup wizard, the Microsoft Teams step, or Admin, Settings, Microsoft Teams

Teams does three jobs, and you can set up the first without the others.

  • Channel notifications. One Teams channel receives vulnerability alerts and server alerts. This needs only a webhook address from Teams.
  • A bot that messages colleagues. cyantula sends owners their notifications as a direct message in Teams, with the same buttons to approve or decline as in Slack.
  • Published apps. An app can post to the channels you allow, or message a colleague, through the same bot. Nobody registers a bot per app.

cyantula uses one chat app at a time for its own messages, Slack or Teams, so nobody is told twice. You choose with Where cyantula sends its messages under Admin, Settings, Slack. Automatic picks Slack when it is set up, otherwise Microsoft Teams. Published apps that switched on Teams can still post there whichever app you choose.

What you need from Microsoft first

For channel notifications: permission to add a Workflow to the channel. For the bot: someone who can administer Microsoft Entra, Azure and the Teams admin center, and a global administrator to approve the permissions. The bot takes about ten minutes and belongs to your own Microsoft account.

In the setup wizard the Microsoft Teams step is optional. It is offered when your organisation signs in with Microsoft, or when Teams is already being set up. Everything it asks is also on Admin, Settings, Microsoft Teams.

Post alerts in a channel

  1. In Teams, open the channel, click ⋯, then Workflows.
  2. Pick Post to a channel when a webhook request is received and finish the Workflow.
  3. Copy the address Teams gives you into Teams channel webhook address. It is the key to the channel, so cyantula stores it encrypted and never shows it again.
  4. Optional: set Post findings in the channel from to the lowest severity of vulnerability finding that should appear, or Off. Server alerts are always posted. Personal messages such as access requests and approvals never go to the channel.
  5. Save, then click Send a test message. One card should appear in the channel.

Set up the bot

The Set up the bot panel on the Teams page walks through these steps with your server's own addresses filled in.

  1. Register an app in Microsoft Entra. Open App registrations, New registration, name it cyantula and choose Accounts in this organizational directory only. Copy the Application (client) ID into Teams bot application (client) ID and the Directory (tenant) ID into Microsoft tenant (directory) ID. Under Certificates & secrets, create a client secret and copy its Value into Teams bot client secret. Save.
  2. Create an Azure Bot. In the Azure portal create an Azure Bot of type Single Tenant, using the existing app registration. In its Configuration, set the messaging endpoint to the address the cyantula panel shows under Copy endpoint. Under Channels, add Microsoft Teams.
  3. Grant the permissions. In the app registration open API permissions and add the Microsoft Graph application permissions the panel lists, then have a global administrator approve them with the link under Copy consent link. Two are required; the others are optional and marked in the panel. Add the optional ones when you need the feature they belong to.
  4. Upload the app in Teams. Click Download Teams app package, open the Teams admin center, Manage apps and choose Upload new app.
  5. Back in cyantula, click Test bot connection. It signs in as the bot and checks the permissions. It sends no message.

How colleagues are connected

Nobody connects by hand. cyantula finds each person through their Microsoft (Entra) account when they sign in, adds its app to their Teams and opens a chat with them. Colleagues see where they stand under Profile, Teams: Connected, Paused, Blocked, Problem or Not yet. They can Pause Teams, click Check again, or Send me a test message.

After you fix permissions, Re-check Teams links on the Teams page tries everybody who is not connected yet. It sends nothing, and it skips anyone who paused Teams.

People who do not sign in with Microsoft can be matched by their email address if you switch on Find people by email. It is off by default, because an email match is a guess, and it needs the optional directory permission.

Let published apps post to channels

The bot can only post in a team it has been added to. Under Teams and channels:

  1. Type the start of a team's name, or paste its ID, and click Search, then Add.
  2. Click Add the app to this team. The team then shows App added.
  3. Tick the channels apps may post in. Refresh channels reloads the list. Private and shared channels are not offered.

Each app's owner then ticks This app posts to Teams on the app's Teams tab, picks from the channels you allowed, and deploys once. That tab only appears when the bot is set up. Teams messages one app may post per day (under Advanced) caps the volume; 0 means no limit. Remove a team to stop apps posting there; the cyantula app stays installed in Teams until you remove it.

Without Teams

Nothing breaks. Notifications go by mail, or through Slack when that is set up, and the bell in the portal keeps working. Email also stays the fallback for anyone Teams does not reach. Apps cannot post to Teams, and the Teams tab on an app stays hidden.