Using mmctl To Add All Users To A New Channel

Summary
Use mmctl to add all active users in a Team to a new channel created in that Team.

Using the reference documentation - mmctl command line tool — Mattermost documentation there appears to be a method to add individual users. Is there a method to add the entire membership within that Team? I wish this was asked when creating the new channel.

We are not using Enterprise and require to use the mmctl tool.

I’m guessing probably no, since LDAP group synch is typically how we’d do this. But you always could run a bash loop through a list of all users and add them that way. If mmctl gives an error on a user who’s already in the group, including a test before adding would solve.

It seems strange and abnormal to not have the same --all-users that exists for the remove command also existing for the add command:
https://docs.mattermost.com/manage/mmctl-command-line-tool.html#codecell122

eg, this exists:

mmctl channel users remove myteam:mychannel user@example.com username
mmctl channel users remove myteam:mychannel --all-users

BUT it does not exist for add:
https://docs.mattermost.com/manage/mmctl-command-line-tool.html#codecell117

cc @amy.blais

Good point! You can add a suggestion at General: Hot (1199 ideas) – Mattermost Feature Proposal Forum