Hi,
You can try programmatically by calling a web service to assign work. I think the UI handles this situation very well, and allows one to select the user and assigns the work. I feel we need more context to this question here. Can you please provide some more details?
Thanks!