I'm trying to follow Configuring Role-based Access Control | X-Pack for the Elastic Stack [5.6] | Elastic...
How can one specify a following permissions
- specific _type
- if certain field exists
Please advise.
I'm trying to follow Configuring Role-based Access Control | X-Pack for the Elastic Stack [5.6] | Elastic...
How can one specify a following permissions
Please advise.
You can create permissions for a role on documents that match a certain query, which is usually referred to as "Document Level Security" and requires at least a Platinum-level X-Pack license.
Permissions on a specific type would require a term
query on the _type
field [1], and permissions on if a field exists would use an exists
query [2]
[1] https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html
[2] https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.