I have now successfully installed the latest version of Mattermost on my server and secured it with SSL and i am a new in administration this software.
Now I wanted to create another user, but under the “System Console” I can ONLY see the previous user; here I have absolutely no possibility to create another user.
Have I overlooked something? Is this possibly done at the CLI level?
Hi ZXRobotum and welcome to the Mattermost forums!
Unfortunately, you cannot create new user accounts in the GUI, you can just send the invite link to others or invite them directly on their e-mail addresses (if you enabled these features in the
SignUp section in your system console).
There is, however, a way to create the accounts locally using the
mmctl utility (which is included in the distribution, it’s in the
bin folder next to the server binary).
bin/mmctl user create --help
Create a user
mmctl user create [flags]
# You can create a user
$ mmctl user create --email email@example.com --username userexample --password Password1
# You can define optional fields like first name, last name and nick name too
$ mmctl user create --email firstname.lastname@example.org --username userexample --password Password1 --firstname User --lastname Example --nickname userex
# Also you can create the user as system administrator
$ mmctl user create --email email@example.com --username userexample --password Password1 --system-admin
# Finally you can verify user on creation if you have enough permissions
$ mmctl user create --email firstname.lastname@example.org --username userexample --password Password1 --system-admin --email-verified
--disable-welcome-email Optional. If supplied, the new user will not receive a welcome email. Defaults to false
--email string Required. The email address for the new user account
--email-verified Optional. If supplied, the new user will have the email verified. Defaults to false
--firstname string Optional. The first name for the new user account
--guest Optional. If supplied, the new user will be a guest. Defaults to false
-h, --help help for create
--lastname string Optional. The last name for the new user account
--locale string Optional. The locale (ex: en, fr) for the new user account
--nickname string Optional. The nickname for the new user account
--password string Required. The password for the new user account
--system-admin Optional. If supplied, the new user will be a system administrator. Defaults to false
--username string Required. Username for the new user account
--config string path to the configuration file (default "$XDG_CONFIG_HOME/mmctl/config")
--disable-pager disables paged output
--insecure-sha1-intermediate allows to use insecure TLS protocols, such as SHA-1
--insecure-tls-version allows to use TLS versions 1.0 and 1.1
--json the output format will be in json format
--local allows communicating with the server through a unix socket
--quiet prevent mmctl to generate output for the commands
--strict will only run commands if the mmctl version matches the server one
--suppress-warnings disables printing warning messages
Ideally, you would enable the so-called
LocalMode in your Mattermost server’s
config.json, then you do not need to authenticate to the server when using
mmctl. You can just use the
--local flag then instead of providing credentials, which is easier to use.
On the other hand, you can also download the
mmctl binary to your client computer and manage Mattermost from there. The binaries are also available for different platforms: