moved setAdmins/setUsers declaration into toObject function