Not recommended for production use without Mattermost guidance. Please reach out to your Customer Success Manager to learn more.
This plugin allows you to add users to a channel in bulk by uploading a JSON file.
This repository is licensed under the Mattermost Source Available License and requires a valid Enterprise Edition License when used for production. See frequently asked questions to learn more.
Although a valid Mattermost Enterprise Edition License is required if using this plugin in production, the Mattermost Source Available License allows you to compile and test this plugin in development and testing environments without a Mattermost Enterprise Edition License. As such, we welcome community contributions to this plugin.
If you're running an Enterprise Edition of Mattermost and don't already have a valid license, you can obtain a trial license from System Console > Edition and License. If you're running the Team Edition of Mattermost, including when you run the server directly from source, you may instead configure your server to enable both testing (ServiceSettings.EnableTesting
) and developer mode (ServiceSettings.EnableDeveloper
). These settings are not recommended in production environments.
- Allows adding users to a channel in bulk by uploading a JSON file.
- Supports using
user_id
andusername
.
- Supports using
- (Optionally) Adds the users to the team if they don't belong to it.
- Clone this repository.
- Build and upload the plugin manually:
- Run
make dist
to build the plugin. - Go to System Console > Plugins > Management in your Mattermost instance
- Upload the plugin located in the
dist/
folder.
- Run
- (or) Upload the plugin directly with a command:
- Set the environment variables:
MM_SERVICESETTINGS_SITEURL
to your Mattermost URL.MM_ADMIN_USERNAME
to your Mattermost username.MM_ADMIN_PASSWORD
to your Mattermost password.
- Run
make deploy
to build and upload the plugin.
- Set the environment variables:
After successful installation:
-
Craft a JSON file following the following format.
-
Launch the plugin from the channel header or channel intro:
-
You will be presented with a modal where you can upload the JSON file:
- File: Upload a JSON file following the following format.
- Invite members to the team: If checked, the users will be added to the team if they are not already members. Otherwise they will be skipped.
-
The plugin will display it's progress in the channel:
To trigger a release, follow these steps:
-
For Patch Release: Run the following command:
make patch
This will release a patch change.
-
For Minor Release: Run the following command:
make minor
This will release a minor change.
-
For Major Release: Run the following command:
make major
This will release a major change.
-
For Patch Release Candidate (RC): Run the following command:
make patch-rc
This will release a patch release candidate.
-
For Minor Release Candidate (RC): Run the following command:
make minor-rc
This will release a minor release candidate.
-
For Major Release Candidate (RC): Run the following command:
make major-rc
This will release a major release candidate.
If you would like to help improve this plugin, feel free to submit a pull request. You can also check for open issues and see if there's anything you can help with.