In the project security settings Mendix limits access, which user roles can be managed by another user. So this may be the reason, why you are not able to filter user accounts based on the user role.
https://docs.mendix.com/refguide/user-roles/#2-user-role-properties
If this is the case, an alternative might be to add a UserType enumeration to the user account.