# Unable to create user

**URL:** <https://forum.mattermost.com/t/unable-to-create-user/15560>\
**Category:** Command Line Interface\
**Created:** [April 3, 2023, 3:56pm UTC](https://forum.mattermost.com/t/unable-to-create-user/15560 "2023-04-03T15:56:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [April 4, 2023, 3:44am UTC](https://forum.mattermost.com/t/unable-to-create-user/15560/2 "2023-04-04T03:44:21Z")

</div>

Hey tomz,

you can skip the `--config` option, this is not meant to be the Mattermost server’s `config.json`, but a local configuration file for `mmctl` where you can store settings for it.

Can you share the output of:

```auto
# mmctl --local config get PasswordSettings
{
  "MinimumLength": 8,
  "Lowercase": false,
  "Number": false,
  "Uppercase": false,
  "Symbol": false
}

```

And compare the rules there with the password you tried to set? I can reproduce this error message only when I break the configured rules for the new password (in my example below, it’s too short).

With regards to the error message being in German: This happens when the `LocalizationSettings.DefaultClientLocale` is set to German. `mmctl` is also just a client and when it establishes a session, it inherits the locale setting:

```auto
# mmctl --local config get LocalizationSettings
{
  "DefaultServerLocale": "en",
  "DefaultClientLocale": "de",
  "AvailableLocales": ""
}

# mmctl --local user create --email asdf@asdf.com --username asdf --password asdf
Error: Unable to create user. Error: : Der Login schlug fehl, weil das Passwort ungültig ist., invalid password

```

A server restart is necessary after changing the `DefaultClientLocale`, JFYI.

---

_[View the full topic](https://forum.mattermost.com/t/unable-to-create-user/15560)._
