added getMembersByRole to get distinct users for particular roles