FIX: limit number of users addable to group at once (PR #10510)

When someone wants to add > 1000 users at once they will hit a timeout. Therefore, we should introduce limit and inform the user when limit is exceeded.

GitHub

We need to restore the original constant at the end of the task so that this does not cause a state leak.

To prevent warnings when reloading it’s recommended to use the ||= operator here.