How to get all members for a select widget

I have a problem, I read the documentation but could not get it work.

My instantiation form should show all employees so that the user can select from the select widget.

How can I load a group of users into a select widget? I tried using API but could not find the right line to do it.

Could someone point me to a good example or write the API how to load the usernames and Ids?

Thank you in andvance!

Hello
watch this video from the minute 34, it will meet your need.
video

Thank you, this is what i was looking for. Tomorrow I will try to use it, with this it will be easy.

your welcome, if all is well, do not forget to mark that the problem is solved.

I was really curious if i could do it or not, so i already tried it works perfectly, tank you, marking the problem solved is done by clicking de done symbol next to the answer?

I was really curious if i could do it or not, so i already tried it works perfectly, tank you, marking the problem solved is done by clicking de done symbol next to the answer?

yes, good continuation.