Apply field-level security with conditions

Hi,

I am trying to apply roles with field-level security containing a certain condition over the value that field holds. Is that possible?

Thanks in advance!

hi @filipe

Can you provide a brief example of what you are trying to achieve? Might make it easier to help out

Hi Anthony,

This is an example document:

    "field1": 1234,
    "field2": [
      {
        "sub-field1": "string",
        "sub-field2": true,
        "sub-field3": true
      }
    ],
    "field3": "string",

What I would like to achieve is the following:

If Field3 is not null and Field3 is a certain value: “value” then Field2 should not be part of the result document. Would it be possible to apply this with fls?

Thank you.