Document-level security - User attributes from LDAP


We have started to use ABAC as described in the documentation:

With some workaround, it works in our case: Document-level security - Multiple attributes based access

And now we consider to use LDAP users instead of the internal ones.
Is there a way to use somehow LDAP user attributes how we use it for the internal ones?

Thank you!