handle multiple batches of users/groups