Skip to content

Mattermost application ​

Mattermost is a team messaging and collaboration platform. MIA connects to it through the v4 API to inventory the users of your instance, create their accounts, assign them to teams and deactivate their accounts.

What MIA does in Mattermost ​

  • Inventory: the active users of the instance. Deactivated accounts and bots are not inventoried.
  • Add users: MIA creates the account with the user's email address and the password entered when opening access, then adds it to the teams (workspaces) selected among those of the instance.
  • Remove users: MIA deactivates the Mattermost account and revokes its sessions, without deleting it permanently.

Authentication type and prerequisites ​

Authentication type: Personal access token

Prerequisites

Use a personal access token owned by a Mattermost System Administrator. Personal access tokens must be enabled under System Console → Integrations → Integration Management.

Docker deployments

If the setting is missing or locked in the System Console, add the following environment variable to the Mattermost container, then recreate it:

yaml
environment:
  MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS: "true"

Environment variables override the configuration stored in config.json.

Connection steps ​

  1. In Mattermost, open Profile → Security → Personal Access Tokens.
  2. Create a token for MIA and copy it immediately.
  3. In MIA, open Applications → Add an application → Mattermost.
  4. Enter the root URL of your instance (for example https://mattermost.example.com) and the token.

See the Mattermost REST API documentation and the personal access token documentation.