Modded to support "resMemberOf" groups