The LDAP user source has a custom parameter called custom_filter. To filter
by group, configure this field as follows:
{ "custom_filter": "(isMemberOf=cn=Group,dc=example,dc=com)" }
where Group,dc=example,dc=com is the group used for filtering. It is also
possible to filter by any user attribute using the same custom_filter
option.