# Action \[indices:admin/mappings/get\] is unauthorized for user

**URL:** <https://discuss.elastic.co/t/action-indices-admin-mappings-get-is-unauthorized-for-user/152857>\
**Category:** Elasticsearch\
**Created:** [October 17, 2018, 2:07pm UTC](https://discuss.elastic.co/t/action-indices-admin-mappings-get-is-unauthorized-for-user/152857 "2018-10-17T14:07:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agonzalez](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@agonzalez](https://discuss.elastic.co/u/agonzalez)\
**Post date:** [October 17, 2018, 2:07pm UTC](https://discuss.elastic.co/t/action-indices-admin-mappings-get-is-unauthorized-for-user/152857/1 "2018-10-17T14:07:30Z")

</div>

i created a user with only read/write permission to .kibana and someindex-\* but i get that error when connecting grafana, what permissions are required for user to get mappings?

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [October 17, 2018, 4:04pm UTC](https://discuss.elastic.co/t/action-indices-admin-mappings-get-is-unauthorized-for-user/152857/2 "2018-10-17T16:04:18Z")

</div>

The user needs the `view_metadata` permissions on the indices in order to get mappings

---

<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:** [November 14, 2018, 4:12pm UTC](https://discuss.elastic.co/t/action-indices-admin-mappings-get-is-unauthorized-for-user/152857/3 "2018-11-14T16:12:38Z")

</div>

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