# Unable to craeate the Custom role when using shield with kibana

**URL:** <https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 30, 2016, 1:38pm UTC](https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317 "2016-08-30T13:38:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![balubollam](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@balubollam](https://discuss.elastic.co/u/balubollam)\
**Post date:** [August 30, 2016, 1:38pm UTC](https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317/1 "2016-08-30T13:38:05Z")

</div>

Hi,

My ES version is :1.5.2  
shield is:2.3  
kibana:4.1.11

[1.in](http://1.in) /etc/elasticsearch/shield/roles.yml i have added role in the below way to only read the index '.marvel-2016.08.30' through the kibana

my\_kibana\_user:  
cluster:  
- cluster:monitor/nodes/info  
- cluster:monitor/health  
indices:  
- names: '.marvel-2016.08.30'  
privileges:  
- view\_index\_metadata  
- read  
- names: '.kibana\*'  
privileges:  
- manage  
- read  
- index

2.created user  
bin/shield/esusers useradd test2 -r kibana4 -p pwd

3in kibana.yml added  
kibana\_elasticsearch\_username: test2  
kibana\_elasticsearch\_password: pwd

NOw when on kibana ./kibana

but iam getting error  
{"name":"Kibana","hostname":"localhost.localdomain","pid":20806,"level":50,"err":{"message":"AuthorizationException[action [cluster:monitor/health] is unauthorized for user [test2]]","name":"Error","stack":"Error: AuthorizationException[action [cluster:monitor/health] is unauthorized for user [test2]]\n at respond (/home/ktree/kibana-4.1.11-linux-x64/src/node\_modules/elasticsearch/src/lib/transport.js:235:15)\n

Can anyone please help me out how to create a custom role.

Thnaks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 30, 2016, 1:42pm UTC](https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317/2 "2016-08-30T13:42:27Z")

</div>

From what I can see in the [compatibility matrix](https://www.elastic.co/support/matrix#show_compatibility) it looks like you are running an unsupported combination of Shield and Elasticsearch. Are your versions correct?

---

<div class="post-metadata">

**Author:** ![balubollam](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@balubollam](https://discuss.elastic.co/u/balubollam)\
**Post date:** [August 30, 2016, 2:37pm UTC](https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317/3 "2016-08-30T14:37:27Z")

</div>

Thanks a lot for quick reply

\*Yes iam using that versions only.i have installed shield by  
plugin -install /elasticsearch/shield/latest  
so it will install shield 2.3only right?  
\*And my kibana is 4.1.11  
my es is 1.5.2/.  
..........  
That link helpmed me................But getting same error...........Please help me out

---

<div class="post-metadata">

**Author:** ![balubollam](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@balubollam](https://discuss.elastic.co/u/balubollam)\
**Post date:** [August 30, 2016, 3:05pm UTC](https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317/4 "2016-08-30T15:05:57Z")

</div>

HI i have canges the license to 1.0.0 and shield to 1.3.0 but still getting the same....

Plaese help me out

---

<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:42pm UTC](https://discuss.elastic.co/t/unable-to-craeate-the-custom-role-when-using-shield-with-kibana/59317/5 "2017-07-06T13:42:07Z")

</div>


