Get queue members

Hi everyone!

I’m working with an application, and I need to get current members in queue for interact with them.
I want to do something like that:
Get user name of queue and, for example, if the position in queue of user “X” is number 8 but I know that “X” user is a good guy, pass to number 1 in queue. Is it possible? If is possible, how can I do?

Thanks.