java.lang.UnsupportedOperationException on X-pack enabled ABAC system

Can you recommend any workaround around this issue or how to not match with a sparse role query?