<commit_before>---
title: Teleport integration with Mattermost
description: This guide explains how to setup a Mattermost plugin for Teleport for privilege elevation approvals.
---

# Teleport Mattermost Plugin Setup

This guide will talk through how to setup Teleport with Mattermost. Teleport to
Mattermost integration allows teams to approve or deny Teleport access requests
using [Mattermost](https://mattermost.com/) an open source messaging platform.

!!! warning

    The Approval Workflow only works with Teleport Enterprise as it requires several roles.

#### Example Mattermost Request

<video controls />
  <source src="../../../img/enterprise/plugins/mattermost/mattermost.mp4" type="video/mp4" />
  <source src="../../../img/enterprise/plugins/mattermost/mattermost.webm" type="video/webm" />
Your browser does not support the video tag.
</video>

## Setup
### Prerequisites
This guide assumes that you have:

* Teleport Enterprise 4.2.8 or newer
* Admin privileges with access to `tctl`
* Mattermost account with admin privileges. This plugin has been tested with Mattermost 5.x

#### Setting up Mattermost to work with the bot

![Enable Mattermost bots](../../img/enterprise/plugins/mattermost/mattermost_admin_console_integrations_bot_accounts.png)

In Mattermost, go to System Console → Integrations → Enable Bot Account Creation → Set to True.
This will allow us to create a new bot account that the Teleport bot will use.

Go back to your team, then Integrations → Bot Accounts → Add Bot Account.<commit_msg>Fix typo in video tag<commit_after>---
title: Teleport integration with Mattermost
description: This guide explains how to setup a Mattermost plugin for Teleport for privilege elevation approvals.
---

# Teleport Mattermost Plugin Setup

This guide will talk through how to setup Teleport with Mattermost. Teleport to
Mattermost integration allows teams to approve or deny Teleport access requests
using [Mattermost](https://mattermost.com/) an open source messaging platform.

!!! warning

    The Approval Workflow only works with Teleport Enterprise as it requires several roles.

#### Example Mattermost Request

<video controls>
  <source src="../../../img/enterprise/plugins/mattermost/mattermost.mp4" type="video/mp4" />
  <source src="../../../img/enterprise/plugins/mattermost/mattermost.webm" type="video/webm" />
Your browser does not support the video tag.
</video>

## Setup
### Prerequisites
This guide assumes that you have:

* Teleport Enterprise 4.2.8 or newer
* Admin privileges with access to `tctl`
* Mattermost account with admin privileges. This plugin has been tested with Mattermost 5.x

#### Setting up Mattermost to work with the bot

![Enable Mattermost bots](../../img/enterprise/plugins/mattermost/mattermost_admin_console_integrations_bot_accounts.png)

In Mattermost, go to System Console → Integrations → Enable Bot Account Creation → Set to True.
This will allow us to create a new bot account that the Teleport bot will use.

Go back to your team, then Integrations → Bot Accounts → Add Bot Account.
{'fraction_non_alphanumeric': 0.08594771241830065, 'fraction_numerical': 0.00392156862745098, 'mean_word_length': 4.4369449378330375, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6716497', 'n_tokens_mistral': 839, 'n_tokens_neox': 778, 'n_words': 365}