I am working on setting up an Elasticsearch index, where the Kibana access would be controlled by AWS Cognito. I would like to set up 2 types of users in Cognito; Type 1 would have access to all data fields in the index, while Type 2 would only have access to selected data fields. For example, suppose my schema is
--Name
--Salary
--JobTitle
--UniqueId
--CreationDate
--Description
I would like Type 1 users to be able to access all fields, while Type 2 users would only be able to access Name, JobTitle, and Description. I found how to enable field level security in Elasticsearch (https://www.elastic.co/guide/en/elastic-stack-overview/7.1/field-level-security.html), but I can't find how to integrate this with Cognito.