Update users_select function to limit number of parameters and implement an object option
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=293959) </details> <!--IssueSummary end--> The following discussion from !46738 should be addressed: - [ ] @f_caplette started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46738#note_467463607): (+1 comment) > **Issue** I am again not super familiar with this part of the code, but we do recommend limiting the number of arguments passed to a function to 3 https://docs.gitlab.com/ee/development/fe_guide/style/javascript.html#limit-number-of-parameters > > To circumvent this, we should at least use an `object` to pass all of these params here, which we can deconstruct right in the function definition. **Warning**: This is a shared component so please tread carefully!
issue