# Kibana scripted fields and permissions

**URL:** <https://discuss.elastic.co/t/kibana-scripted-fields-and-permissions/99853>\
**Category:** Kibana\
**Created:** [September 8, 2017, 1:28pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-and-permissions/99853 "2017-09-08T13:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frances\_Buontempo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frances_buontempo/32/16050_2.png) [@Frances\_Buontempo](https://discuss.elastic.co/u/Frances_Buontempo)\
**Post date:** [September 8, 2017, 1:28pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-and-permissions/99853/1 "2017-09-08T13:28:37Z")

</div>

I recently installed X-Packs (using 5.2 for now)

- the elastic user seems to be able to add script in kibana under Manage Index | Scripted fields, but another user, with a role I made, gets:

"Scripting disabled: All inline scripting has been disabled in Elasticsearch. You must enable inline scripting for at least one language in order to use scripted fields in Kibana."

I've tried adding script.inline: true to elastic's yaml and bounced it, but still get the error.  
Do I need to add a permission to the user role? If so what?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [September 11, 2017, 9:20pm UTC](https://discuss.elastic.co/t/kibana-scripted-fields-and-permissions/99853/2 "2017-09-11T21:20:29Z")

</div>

It shouldn't be per user, you could try running a script query with Kibana's devtools or curl as a super user to confirm.

What do you see in the `script` section of the response to `<elasticsearch-host>:<port>/_cluster/settings?include_defaults`

---

<div class="post-metadata">

**Author:** ![Frances\_Buontempo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frances_buontempo/32/16050_2.png) [@Frances\_Buontempo](https://discuss.elastic.co/u/Frances_Buontempo)\
**Post date:** [September 12, 2017, 8:20am UTC](https://discuss.elastic.co/t/kibana-scripted-fields-and-permissions/99853/3 "2017-09-12T08:20:01Z")

</div>

Just this:

```
"script":{"cache":{"max_size":"100","expire":"0ms"},

```

It does seem to work now, but I also enabled "manage cluster index" in the user's role.  
That might be coincidental... I'm not clear what each of the roles mean. (Or what I'm doning!)

---

<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:** [October 10, 2017, 8:20am UTC](https://discuss.elastic.co/t/kibana-scripted-fields-and-permissions/99853/4 "2017-10-10T08:20:34Z")

</div>

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