# Cannot create new user in shield

**URL:** <https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 29, 2015, 1:39pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249 "2015-10-29T13:39:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [October 29, 2015, 1:39pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/1 "2015-10-29T13:39:35Z")

</div>

Hi Team,

My cluster config is Elasticsearch (1.7.2) & Shield 2.0, Java 1.8  
I am unable to create a new user for shield by using the following command

**bin/shield/esusers useradd espoweruser -r power\_user**

I am getting error as below.

**Error: Could not find or load main class org.elasticsearch.shield.authc.esusers.tool.ESUsersTool**

Please help me to resolve this error.

Thanks,  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![skearns](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skearns/32/125945_2.png) [@skearns](https://discuss.elastic.co/u/skearns)\
**Post date:** [October 29, 2015, 2:03pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/2 "2015-10-29T14:03:14Z")

</div>

Hi Ganeshbabu,

Shield 2.0 will only work with Elasticsearch 2.0. Starting with Shield/Watcher/Marvel 2.0, we have tied the version numbers together to simplify the version compatibility matrix.

To use Shield with Elasticsearch 1.7, you will need to use Shield 1.3.2. First, you'll need to uninstall Shield 2.0:

`bin/plugin remove shield`

Then you can install Shield 1.3.2:

`bin/plugin install elasticsearch/shield/1.3.2`

Now esusers should work for you.

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [October 29, 2015, 2:21pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/3 "2015-10-29T14:21:12Z")

</div>

Thanks for you response.

Sorry @skearns I have given wrong cluster config my shield version is 1.3 only. Already admin user has been created and it's working fine.  
But now I am trying to create power\_user for monitor purpose I am getting this error,

**Could not find or load main class org.elasticsearch.shield.authc.esusers.tool.ESUsersTool**  
,

Thanks  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [October 30, 2015, 2:32pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/4 "2015-10-30T14:32:05Z")

</div>

Can anybody help me to resolve this issue?

Regards  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![skearns](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skearns/32/125945_2.png) [@skearns](https://discuss.elastic.co/u/skearns)\
**Post date:** [November 3, 2015, 4:10pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/5 "2015-11-03T16:10:28Z")

</div>

Hi Ganeshbabu,

How did you install ES? What OS are you running?

How and from what directory are you running the esusers command? What user are you running the command as?

Did you make any changes to the installation?

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [November 3, 2015, 6:16pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/6 "2015-11-03T18:16:47Z")

</div>

Thanks for your response @skearns

we have fixed this issue. I discussed with the my infra setup team and finally i can able to create new esusers.

Regards,  
Ganeshbabu R

---

<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 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/cannot-create-new-user-in-shield/33249/7 "2017-07-06T13:48:03Z")

</div>


