How to make the search api call in auiSelect2 dropdown

Hello there,
I’m building the configuration page on Jira on-prem, where I am trying to select a user. I use the API to fetch the user based on search and project chosen. I tried to build with the AUISelect2.
But the problem I am facing is I cannot get the reference to the search input field in the auiSelect2 such that on the change of input value I can call the API and fetch the data.
Is there a way that I can achieve this?
Or is there another approach where I get all the users that are assignable to the project.