Bulk Invite Mattermost Plugin
This plugin allows you to add users to a channel in bulk by uploading a JSON file.
Features
- 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.
- (Optionally) Invite guest users too, if provied.
Installation
- 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:
Usage
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.
- Invite guests: If checked, guest users on the list will be added to the channel (and team if the above is checked). Otherwise they will be skipped.
-
The plugin will display it's progress in the channel:
Contribute
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.