Enabling Personal Access Tokens (PATs) for Users

Problem:
Users are unable to see the option to generate Personal Access Tokens (PATs) in their Mattermost account, despite the PAT feature being globally enabled. 

Solution:
To enable PAT creation for users  and to ensure that they see the option to generate Personal Access Tokens, follow these steps:

  1. Verify Global PAT Settings(good to verify):

    • Navigate to System Console > Integrations > Integration Management.
    • Ensure the setting Enable Personal Access Tokens is set to True.
    access_token_enable.png
  2. Assign PAT Permissions to User:

    • Navigate to System Console > User Management > Users.
    • Locate and select the user needing PAT permissions.
    • Click Manage Roles from the dropdown menu next to the user's name.
    access_token_manage_roles.png
  3. Enable PAT Creation:

    • Within the Manage Roles screen, select the permission Allow this account to generate personal access tokens.
    access_tokens_additional_roles.png
  4. User Action:
    • The user can now log in and access their Profile > Security page.
    • They should now see the option to Create Token under the Personal Access Tokens section.
    • The user can generate and securely store the PAT for script-based authentication.
access_token_create.png

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.