Skip to content

Commit 3617a12

Browse files
authored
DOC-1080: Update Mattermost credentials to medium tier template (n8n-io#2436)
1 parent 75b3497 commit 3617a12

File tree

1 file changed

+38
-12
lines changed

1 file changed

+38
-12
lines changed

docs/integrations/builtin/credentials/mattermost.md

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ You can use these credentials to authenticate the following nodes:
1212

1313
- [Mattermost](/integrations/builtin/app-nodes/n8n-nodes-base.mattermost/)
1414

15-
## Prerequisites
16-
17-
- Create a [Mattermost](https://www.mattermost.com/){:target=_blank .external-link} account.
18-
- Ensure that an admin has enabled personal access tokens in **System Console > Integrations > Integration Management**.
19-
- If using a non-admin user or bot account, ensure that an admin has granted that user account permission to generate personal access tokens in **System Console > User Management > Users > User account > Manage roles**.
20-
21-
Refer to the Mattermost [Personal access tokens documentation](https://developers.mattermost.com/integrate/reference/personal-access-token/){:target=_blank .external-link} for more detailed instructions on enabling personal access tokens.
22-
2315
## Supported authentication methods
2416

2517
- API access token
@@ -30,9 +22,43 @@ Refer to [Mattermost's API documentation](https://api.mattermost.com/){:target=_
3022

3123
## Using API access token
3224

33-
To configure this credential, you'll need:
25+
To configure this credential, you'll need a [Mattermost](https://www.mattermost.com/){:target=_blank .external-link} account and:
26+
27+
- A personal **Access Token**
28+
- Your Mattermost **Base URL**.
29+
30+
To set it up:
31+
32+
1. In Mattermost, go to **Profile > Security > Personal Access Tokens**.
33+
34+
/// warning | No Personal Access Tokens option
35+
If you don't see the Personal Access Tokens option, refer to the troubleshooting steps in [Enable personal access tokens](#enable-personal-access-tokens) below.
36+
///
37+
38+
2. Select **Create Token**.
39+
3. Enter a **Token description**, like `n8n integration`.
40+
4. Select **Save**.
41+
5. Copy the **Token ID** and enter it as the **Access Token** in your n8n credential.
42+
6. Enter your Mattermost URL as the **Base URL**.
43+
7. By default, n8n connects only if SSL certificate validation succeeds. To connect even if SSL certificate validation fails, turn on **Ignore SSL Issues**.
44+
45+
Refer to the Mattermost [Personal access tokens documentation](https://developers.mattermost.com/integrate/reference/personal-access-token/){:target=_blank .external-link} for more information.
46+
47+
## Enable personal access tokens
48+
49+
Not seeing the **Personal Access Tokens** option has two possible causes:
50+
51+
- Mattermost doesn't have the personal access tokens integration enabled.
52+
- You're trying to generate a personal access token as a non-admin user who doesn't have permission to generate personal access tokens.
53+
54+
To identify the root cause and resolve it:
3455

35-
- An **Access Token**: Create a personal access token in Mattermost in **Profile > Security > Personal Access Tokens**. Refer to [Create a personal access token](https://developers.mattermost.com/integrate/reference/personal-access-token/#create-a-personal-access-token){:target=_blank .external-link} for more detailed instructions.
36-
- A **Base URL**: Enter your Mattermost URL.
37-
- _Optional:_ Select whether to **Ignore SSL Issues**. If turned on, the credential will connect even if SSL certificate validation fails.
56+
1. Log in to Mattermost as an admin.
57+
2. Go to **System Console > Integrations > Integration Management**.
58+
3. Confirm that **Enable personal access tokens** is set to **true**. If it's not, change.
59+
4. Go to **System Console > User Management > Users**.
60+
5. Search for the user account you want to allow to generate personal access tokens.
61+
6. Select the **Actions** dropdown for the user and select **Manage roles**.
62+
7. Check the box for **Allow this account to generate personal access tokens** and **Save**.
3863

64+
Refer to the Mattermost [Personal access tokens documentation](https://developers.mattermost.com/integrate/reference/personal-access-token/){:target=_blank .external-link} for more information.

0 commit comments

Comments
 (0)