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

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 (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