$userIds can be uninitialized