Help Wanted: Clarify how to use mmctl with non-email authentication systems #4173
Labels
Area/Content
Area/Documentation Improvements
Improvements to documentation
Difficulty/1:Easy
Good First Issue
Suitable for first-time contributors
Help Wanted
Community help wanted
Needs Documentation
Context
The Mattermost Product Documentation is missing details on how to use mmctl with non-email authentication systems, such as Okta.
Documentation request
Document how to use mmctl to authenticate with non-email authentication systems by generating and using a personal access token or by granting the ability to generate tokens by individual user, as detailed below.
Generate a Personal Access Token
Log in Using mmctl with Token
In a terminal, use the following command to login to mmctl using the generated token:
mmctl auth login <your-mattermost-server-url> --name <login-name> --token <your-access-token>
Replace
<your-mattermost-server-url>
with your Mattermost server URL,<login-name>
with a name to refer to this login, and<your-access-token>
with the token generated above.Example
Assuming your Mattermost server URL is
https://mattermost.example.com
, your desired login name ismy-profile
, and your token isabcd1234
, the command would be:mmctl auth login https://mattermost.example.com --name my-profile --token abcd1234
Additional Notes
mmctl auth remove <login-name>
, and replace<login-name>
with the name you provided, for example:mmctl auth remove my-profile
Grant the ability to create user-tokens individually
Alternatively, admins can permit only admins to generate and use personal access tokens while restricting regular users.
Access System Console as an admin.
Disable Personal Access Token Permissions for all users by going to Integrations > Integration Management > Enable Personal Access Tokens. Set to false.
Allow admin to generate tokens
This approach ensures that only users with admin privileges can generate and manage personal access tokens, providing an additional layer of security and control over token usage within your organization.
The text was updated successfully, but these errors were encountered: