# Adding users

**URL:** <https://discuss.elastic.co/t/adding-users/91680>\
**Category:** Elasticsearch\
**Created:** [July 3, 2017, 6:09pm UTC](https://discuss.elastic.co/t/adding-users/91680 "2017-07-03T18:09:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soapdish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/soapdish/32/17822_2.png) [@soapdish](https://discuss.elastic.co/u/soapdish)\
**Post date:** [July 3, 2017, 6:09pm UTC](https://discuss.elastic.co/t/adding-users/91680/1 "2017-07-03T18:09:12Z")

</div>

Hi forum,

Just upgraded top 5.4.3 and added x-pack plugins - I cant seem to create a new user, as I need a the elastic user's password to do the calls to add new users to access kibana (now I have to enter a UID and PW, which I used to delegate to NGINX) - all gone a bit chicken and egg - and elastic/changeme dont seem to work. Newbie - be patient thanks

curl -XPOST 'localhost:9200/\_xpack/security/user/johnsmith?pretty' -H 'Content-Type: application/json' -d'

```auto
{
  "password" : "q1w2e3r4",
  "roles" : ["admin"],
  "full_name" : "John Smith",
  "email" : "john@smith.com",
}

```

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "security_exception",
        "reason" : "missing authentication token for REST request [/_xpack/security/user/johnsmith?pretty]",
        "header" : {
          "WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
        }
      }
    ],
    "type" : "security_exception",
    "reason" : "missing authentication token for REST request [/_xpack/security/user/johnsmith?pretty]",
    "header" : {
      "WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
    }
  },
  "status" : 401
}

```

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 3, 2017, 6:50pm UTC](https://discuss.elastic.co/t/adding-users/91680/2 "2017-07-03T18:50:55Z")

</div>

Hi Nicholas,

Hmm, I wonder why adding `--user elastic:changeme` doesn't work? Do you get the same error when you set that argument?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 31, 2017, 6:51pm UTC](https://discuss.elastic.co/t/adding-users/91680/3 "2017-07-31T18:51:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
