Hi,
in List menu item and in modules you can find parameter called "SQL Custom Where", it allow you to filter users by custom field value or by complex query. Try to read docs at https://www.easy-profile.com/docs/69-sql-custom-where-list-and-module.html, here you can find some examples (also how to filter by usergroups)