We have one use case where we need to put some field level security based on another field in the document.
We have some documents, each document contain one field called type and based on that type we want to put restrictions on few other fields which can be retrieved or not by the user.
Is this possible ?
Welcome to our community!
As far as I know you can do this via document level security but not on field level in the same way.
Thank you for answering.
One way to achieve this is by separating the documents by creating different indices, apart from this do you see any other alternative ?
This is not possible today. The closest thing you can get is to grant different access based on user's attribute with either Role mapping templates or DLS templated role query or both.
Or just split documents into multiple indices. This is what I'd recommend.
Yes, I also explored these options but I was thinking if there is any other alternative.
Splitting the index is fine but the thing is we don't know if we get more scenarios like this, so this would not be the perfect solution to split the indices many times.
Thank you so much for answering, it would be great if we get something to handle the given scenario soon.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.