# Field\_security exclude fields showing up in visualizations

**URL:** <https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443>\
**Category:** Elasticsearch\
**Created:** [December 28, 2017, 11:47am UTC](https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443 "2017-12-28T11:47:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 28, 2017, 11:47am UTC](https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443/1 "2017-12-28T11:47:30Z")

</div>

Hi,  
I applied field\_security to exclude a field (e.g. plan\_type) while defining the role (e.g. chennai\_users). I have a visual created showing the excluded field (e.g. data table). When I login as a user owning the restricted role (e.g. chennaiuser), I was expecting that visual should not show this field data (e.g. plan\_type), but it is showing the data as if user having access to all the fields.

In the same role, I applied document level security and it is working properly i.e. chennaiuser shows less total count than the superuser (elastic).

Could you please help to understand what is happening here? Is my expectation reasonable?

I found related question/answer in below link, but it is not clear to me. Please help.

> [@Kibana role management granted fields not working](https://discuss.elastic.co/t/kibana-role-management-granted-fields-not-working/103552):
>
> Hi, I am using kibana to create roles. I want only specific fields to show in visualisation. I am putting that fields in granted fields. But in visualisation granted fields not reflected. Even all fields not reflected. When I use \*all in granted fields only at that time fields getting reflected in kibana visualisation. Instead I want to show only specific fields. What are the changes I need to implement while creating role.

Thank you,  
Sachin

---

<div class="post-metadata">

**Author:** ![sachin8778](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sachin8778](https://discuss.elastic.co/u/sachin8778)\
**Post date:** [December 28, 2017, 11:51am UTC](https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443/2 "2017-12-28T11:51:59Z")

</div>

I am using versions:  
ES - 5.6.0  
Kibana - 5.6.2  
x-pack is installed using--  
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack and  
sudo /usr/share/kibana/bin/kibana-plugin install x-pack

---

<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:** [January 25, 2018, 11:52am UTC](https://discuss.elastic.co/t/field-security-exclude-fields-showing-up-in-visualizations/113443/3 "2018-01-25T11:52:38Z")

</div>

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