Exclude admin non-members

Can anyone tell me how to exclude certain users from showing up on the member directory? For example, administrators who should not be listed?

When I change the sorting dropdown menu from “active” to “all” then administrators and back-up accounts are all show up in the member directory. I’d like to be able to exclude them.

Ended up having to remove the shortcode solution I found - is there another way to exclude a certain member from showing up on the member directory, such as administrators who are not a member?

The class class c_ws_plugin__s2member_pro_sc_member_list_in provides the Member List and can be adapted/overridden with a custom version with ease.

It’s found on
s2member-pro/src/includes/classes/sc-member-list-in.inc.php

And is documented here

https://s2member.com/kb-article/s2member-list-shortcode-documentation/