How to list users in hook configuration?

I am trying to write a pre hook for tag management in bitbucket server. In configuration screen, I need to have option to select users who are allowed to create specific tags. How do i list users in pre hook configuration screen?

This can be achieved using internal bitbucket javascript module user-and-group-multi-selector.js