Custom group query for LDAP authentications

We have configured LDAP authentication on our Sophos on premise firewall. We use Jumpcloud as service. Here is link support.jumpcloud.com/.../configuring-sophos-firewall-to-use-jumpclouds-ldap-as-a-service-2019-08-21-10-36-47

What we are looking is ability to only allow users of specific group? This can be easily done through LDAP query. We havn't seen that option in LDAP setting of firewall. We found example on jumpcloud KB for OpenVPN https://support.jumpcloud.com/support/s/article/configuring-openvpn-to-use-jumpclouds-ldap-as-a-service1 (check additional LDAP Requirement option in article)

 

We only have on LDAP instance running on Jumpcloud, and we will like Sophos to authenticate uid against custom query