You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
-
23
15
## Supported authentication methods
24
16
25
17
- API access token
@@ -30,9 +22,43 @@ Refer to [Mattermost's API documentation](https://api.mattermost.com/){:target=_
30
22
31
23
## Using API access token
32
24
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:
34
55
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**.
38
63
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