# Unknown setting \[xpack.security.user\] error

**URL:** <https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349>\
**Category:** Elasticsearch\
**Created:** [November 17, 2016, 8:49am UTC](https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349 "2016-11-17T08:49:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cherry\_Zhang](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Cherry\_Zhang](https://discuss.elastic.co/u/Cherry_Zhang)\
**Post date:** [November 17, 2016, 8:49am UTC](https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349/1 "2016-11-17T08:49:19Z")

</div>

I keep getting this "unknown setting [xpack.security.user] please check that any required plugins are installed," error. from document, it says

> At a minimum, you must configure xpack.security.user to include the name and password of your transport client user in your requests. The following snippet configures the user credentials globally—every request submitted with this client includes the transport\_client\_user credentials in its headers.

am I missing any library?

---

<div class="post-metadata">

**Author:** ![Cherry\_Zhang](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Cherry\_Zhang](https://discuss.elastic.co/u/Cherry_Zhang)\
**Post date:** [November 17, 2016, 9:50am UTC](https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349/2 "2016-11-17T09:50:41Z")

</div>

Problem solved. I've imported the wrong transport client.

---

<div class="post-metadata">

**Author:** ![111144](https://avatars.discourse-cdn.com/v4/letter/1/b5a626/32.png) [@111144](https://discuss.elastic.co/u/111144)\
**Post date:** [November 30, 2016, 4:10am UTC](https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349/3 "2016-11-30T04:10:01Z")

</div>

i import 5.0.1 and get the same error. What version have you import?

---

<div class="post-metadata">

**Author:** ![Cherry\_Zhang](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Cherry\_Zhang](https://discuss.elastic.co/u/Cherry_Zhang)\
**Post date:** [December 1, 2016, 8:39am UTC](https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349/4 "2016-12-01T08:39:05Z")

</div>

instead of using the right client:

client = new PreBuiltXPackTransportClient(settings);

I using this, which cause the error:

TransportClient client = new PreBuiltTransportClient(settings)

---

<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:** [December 29, 2016, 8:39am UTC](https://discuss.elastic.co/t/unknown-setting-xpack-security-user-error/66349/5 "2016-12-29T08:39:13Z")

</div>

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