# Filter visualization data by cookie identity claims

**URL:** <https://discuss.elastic.co/t/filter-visualization-data-by-cookie-identity-claims/219331>\
**Category:** Kibana\
**Created:** [February 14, 2020, 8:51am UTC](https://discuss.elastic.co/t/filter-visualization-data-by-cookie-identity-claims/219331 "2020-02-14T08:51:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KTH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kth/32/49908_2.png) [@KTH](https://discuss.elastic.co/u/KTH)\
**Post date:** [February 14, 2020, 8:51am UTC](https://discuss.elastic.co/t/filter-visualization-data-by-cookie-identity-claims/219331/1 "2020-02-14T08:51:47Z")

</div>

Hi there,

The website embed the Kibana dashboard and pulling resource data from Kibana. Is there a way to authorize resource filtering by looking into what values are contained in identity claims field value? For example, the identity cookie in this website has a "States" field, that contains values like "Sourth-Carolina", "North-Carolina", "Georgia" and "Florida". What should I do, so that the authorized resource data in visualization components are restricted or filtered by this list of states?

Thanks.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [February 14, 2020, 3:26pm UTC](https://discuss.elastic.co/t/filter-visualization-data-by-cookie-identity-claims/219331/2 "2020-02-14T15:26:06Z")

</div>

You will need to set up [field and document access control](https://www.elastic.co/guide/en/elasticsearch/reference/current/field-and-document-access-control.html) in Elasticsearch for the index. Once that is set-up, you can create [Kibana roles](https://www.elastic.co/guide/en/kibana/current/kibana-role-management.html) for those indices and assign the roles to your users.

---

<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:** [March 13, 2020, 3:26pm UTC](https://discuss.elastic.co/t/filter-visualization-data-by-cookie-identity-claims/219331/3 "2020-03-13T15:26:08Z")

</div>

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