Buddypress hide users by role

Hello,

is it possible to hide users of specific roles in members directory and also in Group page?