SOS-1823 reorganize notifyUsers method to get users in batches